youtube-dl

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

commit 10a1bb3a78453a48f5006179ccb7c6998579dde7
parent 4d3e543c73949765deb4b144b1042b1baedd7692
Author: Yen Chi Hsuan <yan12125@gmail.com>
Date:   Tue, 26 Jul 2016 13:12:24 +0800

[mtv] Fix for videos with missing bitrates

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 @@ -91,7 +91,7 @@ class MTVServicesInfoExtractor(InfoExtractor): formats.extend([{ 'ext': 'flv' if new_url.startswith('rtmp') else ext, 'url': new_url, - 'format_id': '-'.join([kind, rendition.get('bitrate')]), + 'format_id': '-'.join(filter(None, [kind, rendition.get('bitrate')])), 'width': int(rendition.get('width')), 'height': int(rendition.get('height')), } for kind, new_url in new_urls.items()])