Explorar o código

[yahoo] Make thumbnail optional (Closes #3043)

Sergey M․ %!s(int64=11) %!d(string=hai) anos
pai
achega
6340716b3a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      youtube_dl/extractor/yahoo.py

+ 1 - 1
youtube_dl/extractor/yahoo.py

@@ -113,7 +113,7 @@ class YahooIE(InfoExtractor):
             'title': meta['title'],
             'formats': formats,
             'description': clean_html(meta['description']),
-            'thumbnail': meta['thumbnail'],
+            'thumbnail': meta.get('thumbnail'),
         }