logo

youtube-dl

[mirror] Download/Watch videos from video hosters
commit: 187f491ad21d369f34da9e4982ac4b106dfc89ca
parent 335959e7787dd42cb47c1267ad294e724ad9431d
Author: Philipp Hagemeister <phihag@phihag.de>
Date:   Sat, 12 Jan 2013 18:45:50 +0100

[RBMA] Do not fail if thumbnail is empty

Diffstat:

Myoutube_dl/InfoExtractors.py2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/youtube_dl/InfoExtractors.py b/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]