aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/mtv.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2017-01-10 22:27:23 +0700
committerSergey M․ <dstftw@gmail.com>2017-01-10 22:27:23 +0700
commit20faad74b6416b137d4400853d7a871a256d731e (patch)
tree77021a27a96ebfdd1a7f82e56bdd4b5a3b304a55 /youtube_dl/extractor/mtv.py
parent2032d935d1d99c83e28585ca4c20415dcab56701 (diff)
[mtv] Fix non-hls extraction
method attribute may not be present
Diffstat (limited to 'youtube_dl/extractor/mtv.py')
-rw-r--r--youtube_dl/extractor/mtv.py2
1 files changed, 1 insertions, 1 deletions
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: