A feature-rich command-line audio/video downloader
[extractor] Update dash `manifest_url` after redirects (#3563)
Elyse779da8e31b41
diff --git a/yt_dlp/extractor/common.py b/yt_dlp/extractor/common.pyindex 3ee5e257c6..c60474c7b6 100644--- a/yt_dlp/extractor/common.py+++ b/yt_dlp/extractor/common.py@@ -2676,7 +2676,10 @@ class InfoExtractor:mpd_doc, urlh = resif 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)