expect less from format json
This commit is contained in:
parent
bc05fc7575
commit
8bee77a175
@ -88,14 +88,15 @@ class TvpIE(InfoExtractor):
|
|||||||
|
|
||||||
viable_formats = []
|
viable_formats = []
|
||||||
for f in formats:
|
for f in formats:
|
||||||
if f['mimeType'] in self._IGNORED_MIMETYPES:
|
if f.get('mimeType') in self._IGNORED_MIMETYPES:
|
||||||
|
continue
|
||||||
|
if 'url' not in f:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
elif f['mimeType'].startswith('video/'):
|
viable_formats.append(
|
||||||
viable_formats.append(
|
{'url': f['url'],
|
||||||
{'url': f['url'],
|
'ext': mime_ext.get(f.get('mimeType')),
|
||||||
'ext': mime_ext.get(f['mimeType']),
|
'vbr': f.get('totalBitrate')})
|
||||||
'vbr': f['totalBitrate']})
|
|
||||||
|
|
||||||
return viable_formats
|
return viable_formats
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user