summaryrefslogtreecommitdiff
path: root/tidal_dl_ng/download.py
diff options
context:
space:
mode:
authorexislow <exislow@users.noreply.github.com>2025-01-05 18:43:16 +0100
committerGitHub <noreply@github.com>2025-01-05 18:43:16 +0100
commitedcd689840af69bd611a6735e3586cef59b5449a (patch)
tree9e42cfeac9593265daae8262b623a0c2a24e01a9 /tidal_dl_ng/download.py
parent929bc91ec8cc042fb08d64f5d1ec74d1d833e22f (diff)
parent9318d1bf7436236d616d0e8e6d243800da932477 (diff)
downloadtidal-dl-ng-edcd689840af69bd611a6735e3586cef59b5449a.tar.gz
Merge branch 'master' into nuitka
Diffstat (limited to 'tidal_dl_ng/download.py')
-rw-r--r--tidal_dl_ng/download.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/tidal_dl_ng/download.py b/tidal_dl_ng/download.py
index 6175e4c..0df6355 100644
--- a/tidal_dl_ng/download.py
+++ b/tidal_dl_ng/download.py
@@ -8,9 +8,9 @@ from collections.abc import Callable
from concurrent import futures
from uuid import uuid4
-from ffmpeg import FFmpeg
import m3u8
import requests
+from ffmpeg import FFmpeg
from requests.adapters import HTTPAdapter, Retry
from requests.exceptions import HTTPError
from rich.progress import Progress, TaskID
@@ -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
@@ -779,11 +781,12 @@ class Download:
FFmpeg(executable=self.settings.data.path_binary_ffmpeg)
.input(url=path_media_src)
.output(
- url=path_media_out, map=0,
+ url=path_media_out,
+ map=0,
movflags="use_metadata_tags",
acodec="copy",
map_metadata="0:g",
- loglevel="quiet"
+ loglevel="quiet",
)
)