Browse Source

[mtv] Fix for videos with missing bitrates

totalwebcasting
Yen Chi Hsuan 9 years ago
parent
commit
10a1bb3a78
No known key found for this signature in database GPG Key ID: 3FDDD575826C5C30
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      youtube_dl/extractor/mtv.py

+ 1
- 1
youtube_dl/extractor/mtv.py View File

@ -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()])


Loading…
Cancel
Save