[atresplayer] fix 'Too many values to unpack'

This commit is contained in:
Ramón Sola 2021-10-04 09:41:10 +02:00
parent f576c41e5b
commit 408965e75d

View file

@ -96,11 +96,11 @@ def _real_extract(self, url):
continue continue
src_type = source.get('type') src_type = source.get('type')
if src_type == 'application/vnd.apple.mpegurl': if src_type == 'application/vnd.apple.mpegurl':
formats, subtitles = self._extract_m3u8_formats( formats, subtitles = self._extract_m3u8_formats_and_subtitles(
src, video_id, 'mp4', 'm3u8_native', src, video_id, 'mp4', 'm3u8_native',
m3u8_id='hls', fatal=False) m3u8_id='hls', fatal=False)
elif src_type == 'application/dash+xml': elif src_type == 'application/dash+xml':
formats, subtitles = self._extract_mpd_formats( formats, subtitles = self._extract_mpd_formats_and_subtitles(
src, video_id, mpd_id='dash', fatal=False) src, video_id, mpd_id='dash', fatal=False)
self._sort_formats(formats) self._sort_formats(formats)