[RBMA] Do not fail if thumbnail is empty
authorPhilipp Hagemeister <phihag@phihag.de>
Sat, 12 Jan 2013 17:45:50 +0000 (18:45 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Sat, 12 Jan 2013 17:45:50 +0000 (18:45 +0100)
youtube_dl/InfoExtractors.py

index 946162d800d84119f2d13129b7d3f9315a0fa550..5fbca1c050ff5f8d64c051d4c12ae06a18ac12a6 100755 (executable)
@@ -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]