[indavideo:embed] Fix tags extraction (Closes #8738)
authorSergey M․ <dstftw@gmail.com>
Thu, 3 Mar 2016 18:09:40 +0000 (00:09 +0600)
committerSergey M․ <dstftw@gmail.com>
Thu, 3 Mar 2016 18:09:40 +0000 (00:09 +0600)
youtube_dl/extractor/indavideo.py

index 12fb5e8e1dcb1e5dfba8057a1496edcbe0f61f82..9622f198aa6aaf99094a9b85c5a914d4f0c07d46 100644 (file)
@@ -73,7 +73,7 @@ class IndavideoEmbedIE(InfoExtractor):
             'url': self._proto_relative_url(thumbnail)
         } 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 {
             'id': video.get('id') or video_id,