0
0
Fork 0

[mtv] Fix non-hls extraction

method attribute may not be present
main
Sergey M․ 2017-01-10 22:27:23 +07:00
parent 2032d935d1
commit 20faad74b6
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ class MTVServicesInfoExtractor(InfoExtractor):
formats = []
for rendition in mdoc.findall('.//rendition'):
if rendition.attrib['method'] == 'hls':
if rendition.get('method') == 'hls':
hls_url = rendition.find('./src').text
formats.extend(self._extract_m3u8_formats(hls_url, video_id, ext='mp4'))
else: