Explorar o código

[RBMA] Do not fail if thumbnail is empty

Philipp Hagemeister %!s(int64=12) %!d(string=hai) anos
pai
achega
187f491ad2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      youtube_dl/InfoExtractors.py

+ 1 - 1
youtube_dl/InfoExtractors.py

@@ -3758,7 +3758,7 @@ class RBMARadioIE(InfoExtractor):
                 'location': data.get('country_of_origin'),
                 'uploader': data.get('host', {}).get('name'),
                 'uploader_id': data.get('host', {}).get('slug'),
-                'thumbnail': data.get('image').get('large_url_2x'),
+                'thumbnail': data.get('image', {}).get('large_url_2x'),
                 'duration': data.get('duration'),
         }
         return [info]