mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-13 23:02:34 +00:00
[extractor] Update dash manifest_url
after redirects (#3563)
Closes #2696 Authored by: elyse0
This commit is contained in:
parent
997378f9df
commit
779da8e31b
1 changed files with 4 additions and 1 deletions
|
@ -2676,7 +2676,10 @@ class InfoExtractor:
|
|||
mpd_doc, urlh = res
|
||||
if mpd_doc is None:
|
||||
return [], {}
|
||||
mpd_base_url = base_url(urlh.geturl())
|
||||
|
||||
# We could have been redirected to a new url when we retrieved our mpd file.
|
||||
mpd_url = urlh.geturl()
|
||||
mpd_base_url = base_url(mpd_url)
|
||||
|
||||
return self._parse_mpd_formats_and_subtitles(
|
||||
mpd_doc, mpd_id, mpd_base_url, mpd_url)
|
||||
|
|
Loading…
Reference in a new issue