From bf7000cab0a4b3807606b659a48981283dd08367 Mon Sep 17 00:00:00 2001 From: Robert Honz Date: Sat, 11 Jan 2025 16:07:05 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=A0=EF=B8=8F=20Fix:=20Playlist=20was?= =?UTF-8?q?=20not=20created=20if=20symlink=20was=20deactivated.=20Fixes=20?= =?UTF-8?q?#322?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tidal_dl_ng/download.py | 2 ++ 1 file changed, 2 insertions(+) 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)