]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[wistia] Fix extraction (Closes #8707)
authorSergey M․ <dstftw@gmail.com>
Tue, 1 Mar 2016 17:26:53 +0000 (23:26 +0600)
committerSergey M․ <dstftw@gmail.com>
Tue, 1 Mar 2016 17:26:53 +0000 (23:26 +0600)
youtube_dl/extractor/wistia.py

index fdb16d91c25ae4a3d3c8314a76050d09cf86ef3a..41061dd3125a6f298a5aa915c62b50aabdb68a47 100644 (file)
@@ -35,7 +35,8 @@ class WistiaIE(InfoExtractor):
 
         formats = []
         thumbnails = []
-        for atype, a in data['assets'].items():
+        for a in data['assets']:
+            atype = a.get('type')
             if atype == 'still':
                 thumbnails.append({
                     'url': a['url'],