👷 Tracks will be linked relatively within the download folder.

This commit is contained in:
Robert Honz
2025-01-04 12:51:17 +01:00
parent 5012c5d4de
commit c0ca748119
+3 -1
View File
@@ -495,8 +495,10 @@ class Download:
if not skip_symlink:
self.fn_logger.debug(f"Symlink: {path_media_src} -> {path_media_dst}")
path_media_dst_relative: pathlib.Path = path_media_dst.relative_to(path_media_src.parent, walk_up=True)
path_media_src.unlink(missing_ok=True)
path_media_src.symlink_to(path_media_dst)
path_media_src.symlink_to(path_media_dst_relative)
return path_media_dst