aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2016-07-26 13:12:24 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2016-07-26 13:12:24 +0800
commit10a1bb3a78453a48f5006179ccb7c6998579dde7 (patch)
tree1bed60d58a8628b962fba8677cab61f43640ebfd /youtube_dl/extractor
parent4d3e543c73949765deb4b144b1042b1baedd7692 (diff)
[mtv] Fix for videos with missing bitrates
Diffstat (limited to 'youtube_dl/extractor')
-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 ba9c28a56..9e71c08c2 100644
--- 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()])