summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Honz <exislow+github@gmail.com>2025-01-11 16:07:05 +0100
committerRobert Honz <exislow+github@gmail.com>2025-01-11 16:07:30 +0100
commitbf7000cab0a4b3807606b659a48981283dd08367 (patch)
tree767cad52b976c24aa795a1e8e58c53fafb4f8e0b
parent8e66cb325986f800ee31629ff58453068c2816d4 (diff)
downloadtidal-dl-ng-bf7000cab0a4b3807606b659a48981283dd08367.tar.gz
🛠️ Fix: Playlist was not created if symlink was deactivated. Fixes #322
-rw-r--r--tidal_dl_ng/download.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tidal_dl_ng/download.py b/tidal_dl_ng/download.py
index 5912531..a91aae0 100644
--- a/tidal_dl_ng/download.py
+++ b/tidal_dl_ng/download.py
@@ -755,6 +755,8 @@ class Download:
# If it's a symlink write the relative file path to the actual track into the playlist file
if path_track.is_symlink():
media_file_target = path_track.resolve().relative_to(path_track.parent, walk_up=True)
+ else:
+ media_file_target = path_track.name
f.write(str(media_file_target) + os.linesep)