瀏覽代碼

[wistia] Fix extraction (Closes #8707)

Sergey M․ 9 年之前
父節點
當前提交
66ca2cfddd
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      youtube_dl/extractor/wistia.py

+ 2 - 1
youtube_dl/extractor/wistia.py

@@ -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'],