From e0e9bb2aa1fa7bc37d873e865579ecd44310b563 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ram=C3=B3n=20Sola?= Date: Fri, 15 Jan 2021 16:23:14 +0100 Subject: [PATCH] [atresplayer] fix MPD download failure: don't unpack too early --- youtube_dl/extractor/atresplayer.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/youtube_dl/extractor/atresplayer.py b/youtube_dl/extractor/atresplayer.py index 1c6024fd7..f317559d2 100644 --- a/youtube_dl/extractor/atresplayer.py +++ b/youtube_dl/extractor/atresplayer.py @@ -137,9 +137,10 @@ class AtresPlayerIE(InfoExtractor): src, video_id, 'mp4', 'm3u8_native', m3u8_id='hls', fatal=False)) elif src_type == 'application/dash+xml': - mpd_doc, mpd_handle = self._download_xml_handle( + mpd = self._download_xml_handle( src, video_id, note='Downloading MPD manifest', fatal=False) - if mpd_doc is not None: + if mpd: + mpd_doc, mpd_handle = mpd mpd_base_url = base_url(mpd_handle.geturl()) subtitles.update(self._get_mpd_subtitles(mpd_doc, mpd_base_url)) formats.extend(self._parse_mpd_formats(