From c8601003d5b451c7a58f1d143f8a120dc4da82b6 Mon Sep 17 00:00:00 2001 From: Thor77 Date: Mon, 16 May 2016 19:42:50 +0200 Subject: [PATCH] don't rely on presence of 'file' --- youtube_dl/extractor/bandcamp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/bandcamp.py b/youtube_dl/extractor/bandcamp.py index 39b100e53..991ab0676 100644 --- a/youtube_dl/extractor/bandcamp.py +++ b/youtube_dl/extractor/bandcamp.py @@ -50,7 +50,7 @@ class BandcampIE(InfoExtractor): data = json.loads(json_code)[0] track_id = compat_str(data['id']) - if not data['file']: + if not data.get('file'): raise ExtractorError('Not streamable', video_id=track_id, expected=True) formats = []