mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-07-18 11:31:03 -05:00
[mtv] Fix non-hls extraction
method attribute may not be present
This commit is contained in:
@ -88,7 +88,7 @@ class MTVServicesInfoExtractor(InfoExtractor):
|
|||||||
|
|
||||||
formats = []
|
formats = []
|
||||||
for rendition in mdoc.findall('.//rendition'):
|
for rendition in mdoc.findall('.//rendition'):
|
||||||
if rendition.attrib['method'] == 'hls':
|
if rendition.get('method') == 'hls':
|
||||||
hls_url = rendition.find('./src').text
|
hls_url = rendition.find('./src').text
|
||||||
formats.extend(self._extract_m3u8_formats(hls_url, video_id, ext='mp4'))
|
formats.extend(self._extract_m3u8_formats(hls_url, video_id, ext='mp4'))
|
||||||
else:
|
else:
|
||||||
|
Reference in New Issue
Block a user