[mtv] Fix for videos with missing bitrates
This commit is contained in:
parent
4d3e543c73
commit
10a1bb3a78
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ class MTVServicesInfoExtractor(InfoExtractor):
|
||||||
formats.extend([{
|
formats.extend([{
|
||||||
'ext': 'flv' if new_url.startswith('rtmp') else ext,
|
'ext': 'flv' if new_url.startswith('rtmp') else ext,
|
||||||
'url': new_url,
|
'url': new_url,
|
||||||
'format_id': '-'.join([kind, rendition.get('bitrate')]),
|
'format_id': '-'.join(filter(None, [kind, rendition.get('bitrate')])),
|
||||||
'width': int(rendition.get('width')),
|
'width': int(rendition.get('width')),
|
||||||
'height': int(rendition.get('height')),
|
'height': int(rendition.get('height')),
|
||||||
} for kind, new_url in new_urls.items()])
|
} for kind, new_url in new_urls.items()])
|
||||||
|
|
Loading…
Reference in a new issue