Parcourir la source

[rtvnh] Make thumbnail optional

Sergey M․ il y a 10 ans
Parent
commit
f196047832
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      youtube_dl/extractor/rtvnh.py

+ 1 - 1
youtube_dl/extractor/rtvnh.py

@@ -35,6 +35,6 @@ class RTVNHIE(InfoExtractor):
         return {
         return {
             'id': video_id,
             'id': video_id,
             'title': meta['title'].strip(),
             'title': meta['title'].strip(),
-            'thumbnail': meta['image'],
+            'thumbnail': meta.get('image'),
             'formats': formats
             'formats': formats
         }
         }