This commit is contained in:
2025-12-31 22:05:25 -08:00
parent 807ea7f53a
commit cfd791d415
12 changed files with 248 additions and 175 deletions

View File

@@ -640,11 +640,13 @@ class Add_File(Cmdlet):
or tidal_metadata.get("_tidal_manifest_url")
)
if not manifest_source:
target_is_mpd = False
if isinstance(media_path_or_url, Path):
manifest_source = media_path_or_url
target_is_mpd = str(media_path_or_url).lower().endswith(".mpd")
elif isinstance(media_path_or_url, str):
if media_path_or_url.lower().endswith(".mpd"):
manifest_source = media_path_or_url
target_is_mpd = media_path_or_url.lower().endswith(".mpd")
if target_is_mpd:
manifest_source = media_path_or_url
if manifest_source:
downloaded, tmp_dir = self._download_manifest_with_ffmpeg(manifest_source)