From: Sergey M․ Date: Tue, 10 Jan 2017 15:27:23 +0000 (+0700) Subject: [mtv] Fix non-hls extraction X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=20faad74b6416b137d4400853d7a871a256d731e;p=youtube-dl [mtv] Fix non-hls extraction method attribute may not be present --- diff --git a/youtube_dl/extractor/mtv.py b/youtube_dl/extractor/mtv.py index 49c192e1a..7c45c7738 100644 --- a/youtube_dl/extractor/mtv.py +++ b/youtube_dl/extractor/mtv.py @@ -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: