Make mandatory field use unsafe access, so it triggers fallback if not found
This commit is contained in:
parent
f70b37ef4f
commit
95dc812c9c
@ -64,7 +64,7 @@ class CamModelsIE(InfoExtractor):
|
|||||||
for encoding in encodings:
|
for encoding in encodings:
|
||||||
formats.append({
|
formats.append({
|
||||||
'ext': 'mp4',
|
'ext': 'mp4',
|
||||||
'url': encoding.get('location'),
|
'url': encoding['location'],
|
||||||
'width': int_or_none(encoding.get('videoWidth')),
|
'width': int_or_none(encoding.get('videoWidth')),
|
||||||
'height': int_or_none(encoding.get('videoHeight')),
|
'height': int_or_none(encoding.get('videoHeight')),
|
||||||
'vbr': int_or_none(encoding.get('videoKbps')),
|
'vbr': int_or_none(encoding.get('videoKbps')),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user