Skip to content

Commit

Permalink
Fix BaseURLs starting with ../ in DASH download_track()
Browse files Browse the repository at this point in the history
  • Loading branch information
rlaphoenix committed Jan 29, 2024
1 parent e967c7c commit e9dc537
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion devine/core/manifests/dash.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def download_track(

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"))

Expand Down

0 comments on commit e9dc537

Please sign in to comment.