🛠️ Fix: Playlist was not created if symlink was deactivated. Fixes #322

This commit is contained in:
Robert Honz
2025-01-11 16:07:30 +01:00
parent 8e66cb3259
commit bf7000cab0
+2
View File
@@ -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 it's a symlink write the relative file path to the actual track into the playlist file
if path_track.is_symlink(): if path_track.is_symlink():
media_file_target = path_track.resolve().relative_to(path_track.parent, walk_up=True) 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) f.write(str(media_file_target) + os.linesep)