From e9dc53735c7ab20eb7e1bab6b3fca374e095556d Mon Sep 17 00:00:00 2001 From: rlaphoenix Date: Mon, 29 Jan 2024 03:26:15 +0000 Subject: [PATCH] Fix BaseURLs starting with `../` in DASH download_track() --- devine/core/manifests/dash.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devine/core/manifests/dash.py b/devine/core/manifests/dash.py index 718f93e..ca9ef2b 100644 --- a/devine/core/manifests/dash.py +++ b/devine/core/manifests/dash.py @@ -253,7 +253,7 @@ class DASH: manifest_base_url = manifest.findtext("BaseURL") if not manifest_base_url or not re.match("^https?://", manifest_base_url, re.IGNORECASE): - manifest_base_url = urljoin(manifest_url, "./", manifest_base_url) + manifest_base_url = urljoin(manifest_url, f"./{manifest_base_url}") period_base_url = urljoin(manifest_base_url, period.findtext("BaseURL")) rep_base_url = urljoin(period_base_url, representation.findtext("BaseURL"))