浏览代码

[indavideo:embed] Fix tags extraction (Closes #8738)

Sergey M․ 9 年之前
父节点
当前提交
d0ff690d68
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      youtube_dl/extractor/indavideo.py

+ 1 - 1
youtube_dl/extractor/indavideo.py

@@ -73,7 +73,7 @@ class IndavideoEmbedIE(InfoExtractor):
             'url': self._proto_relative_url(thumbnail)
             'url': self._proto_relative_url(thumbnail)
         } for thumbnail in video.get('thumbnails', [])]
         } for thumbnail in video.get('thumbnails', [])]
 
 
-        tags = [tag['title'] for tag in video.get('tags', [])]
+        tags = [tag['title'] for tag in video.get('tags') or []]
 
 
         return {
         return {
             'id': video.get('id') or video_id,
             'id': video.get('id') or video_id,