diff options
author | Elyse <kevincristian@outlook.com> | 2022-04-27 13:01:35 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-27 11:01:35 -0700 |
commit | 779da8e31b411d7bb088f246210eeb608adc314b (patch) | |
tree | f9f74cb9c48a76442fb423f322a350771f4c12d4 | |
parent | 997378f9df7ca25a370e13b265205962e986373b (diff) | |
download | hypervideo-pre-779da8e31b411d7bb088f246210eeb608adc314b.tar.lz hypervideo-pre-779da8e31b411d7bb088f246210eeb608adc314b.tar.xz hypervideo-pre-779da8e31b411d7bb088f246210eeb608adc314b.zip |
[extractor] Update dash `manifest_url` after redirects (#3563)
Closes #2696
Authored by: elyse0
-rw-r--r-- | yt_dlp/extractor/common.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/yt_dlp/extractor/common.py b/yt_dlp/extractor/common.py index 3ee5e257c..c60474c7b 100644 --- a/yt_dlp/extractor/common.py +++ b/yt_dlp/extractor/common.py @@ -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) |