1
0
mirror of https://github.com/l1ving/youtube-dl synced 2026-06-06 14:11:46 +08:00

don't rely on presence of 'file'

This commit is contained in:
Thor77
2016-05-16 19:42:50 +02:00
Unverified
parent 85a696cc88
commit c8601003d5
+1 -1
View File
@@ -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 = []