spotDL/spotify-downloader

--restrict=strict not sanitizing directories

オープン

#2,371 opened on 2025/05/08

 (3 件のコメント) (0 件のリアクション) (0 人の担当者)Python (1,418 件のフォーク)batch import
BugGood First Issue

Repository metrics

Stars
 (14,703 個のスター)
PR merge metrics
 (PR metrics pending)

説明

System OS

Linux

Python Version

3.8 (CPython)

Install Source

pip / PyPi

Install version / commit hash

v4.2.11

Expected Behavior vs Actual Behavior

Actual Behavior: I am trying to use the --restrict=strict function, it sanitize the song name. But if I do something like "spotdl download mylink --restrict=strict --output "{artist}/{album}/{track} - {artist} - {album}.m4a" it sanitize just the m4a file name but not the folder names... How to do that?

Expected: Using --restrict whole directory names and file names should be sanitized.

Steps to reproduce - Ensure to include actual links!

Execute spotdl download mylink --restrict=strict --output "{artist}/{album}/{track} - {artist} - {album}.m4a

Just the file name gets sanitized (with spaces and special chars removed)

Traceback

I have no traceback, spotdl is logging nothing...

Just "Downloaded inputsong name"

Other details

No response

コントリビューターガイド