diff options
| author | Robert Honz <exislow+github@gmail.com> | 2025-03-24 07:34:13 +0100 |
|---|---|---|
| committer | Robert Honz <exislow+github@gmail.com> | 2025-03-24 07:34:13 +0100 |
| commit | f936a8794bb99239418c5f422808d560560b0a7e (patch) | |
| tree | a8440fcff7065e6bb74bcd5087c48b29ec4bdaf6 /tidal_dl_ng | |
| parent | b25b58a03b4aa7a3fc6403178b0c7483805044d2 (diff) | |
| download | tidal-dl-ng-f936a8794bb99239418c5f422808d560560b0a7e.tar.gz | |
🛠️ Fixed: Wrong path build after file sanitization on Windows. Fixes #389 & #358
Diffstat (limited to 'tidal_dl_ng')
| -rw-r--r-- | tidal_dl_ng/helper/path.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tidal_dl_ng/helper/path.py b/tidal_dl_ng/helper/path.py index da0e410..700cb68 100644 --- a/tidal_dl_ng/helper/path.py +++ b/tidal_dl_ng/helper/path.py @@ -205,9 +205,9 @@ def get_format_template( def path_file_sanitize(path_file: pathlib.Path, adapt: bool = False, uniquify: bool = True) -> pathlib.Path: - sanitized_path_file: pathlib.Path = pathlib.Path(path_file.root) # Get each directory name separately (first value in tuple; second value is for the file suffix). to_sanitize: [[str, str]] = path_split_parts_suffix(path_file) + sanitized_path_file: pathlib.Path = pathlib.Path(to_sanitize.pop(0)[0]) for name, suffix in to_sanitize: # Sanitize names: We need first top make sure that none file / directory name has bad chars or is longer than 255 chars. |
