From 95dc812c9cdeb9d1079f9c48da900c55c12ee309 Mon Sep 17 00:00:00 2001 From: mars67857 Date: Sun, 15 Oct 2017 17:56:35 -0700 Subject: [PATCH] Make mandatory field use unsafe access, so it triggers fallback if not found --- youtube_dl/extractor/cammodels.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/cammodels.py b/youtube_dl/extractor/cammodels.py index f4365fc60..af5b89399 100644 --- a/youtube_dl/extractor/cammodels.py +++ b/youtube_dl/extractor/cammodels.py @@ -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')),