Skip to content

A feature-rich command-line audio/video downloader

[RBMA] Do not fail if thumbnail is empty

Philipp Hagemeister187f491ad21d
diff --git a/youtube_dl/InfoExtractors.py b/youtube_dl/InfoExtractors.py
index 946162d800..5fbca1c050 100755
--- 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]