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 = []