1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-02-03 05:43:07 +08:00

Make mandatory field use unsafe access, so it triggers fallback if not found

This commit is contained in:
mars67857 2017-10-15 17:56:35 -07:00
parent f70b37ef4f
commit 95dc812c9c

View File

@ -64,7 +64,7 @@ class CamModelsIE(InfoExtractor):
for encoding in encodings:
formats.append({
'ext': 'mp4',
'url': encoding.get('location'),
'url': encoding['location'],
'width': int_or_none(encoding.get('videoWidth')),
'height': int_or_none(encoding.get('videoHeight')),
'vbr': int_or_none(encoding.get('videoKbps')),