spotDL/spotify-downloader

--restrict=strict not sanitizing directories

Open

Aperta il 8 mag 2025

Vedi su GitHub
 (3 commenti) (0 reazioni) (0 assegnatari)Python (14.703 star) (1418 fork)batch import
BugGood First Issue

Descrizione

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

Guida contributor