youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit 20faad74b6416b137d4400853d7a871a256d731e
parent 2032d935d1d99c83e28585ca4c20415dcab56701
Author: Sergey M․ <dstftw@gmail.com>
Date:   Tue, 10 Jan 2017 22:27:23 +0700

[mtv] Fix non-hls extraction
method attribute may not be present

Diffstat:
Myoutube_dl/extractor/mtv.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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: