Explorar o código

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

Sergey M․ %!s(int64=9) %!d(string=hai) anos
pai
achega
d0ff690d68
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)
         } 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,