mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-09-08 09:35:01 +00:00
[ted] Add 'http://' to the thumbnail url if it's missing
This commit is contained in:
parent
6563837ee1
commit
b6c1ceccc2
|
@ -93,11 +93,14 @@ class TEDIE(SubtitlesInfoExtractor):
|
||||||
self._list_available_subtitles(video_id, talk_info)
|
self._list_available_subtitles(video_id, talk_info)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
thumbnail = talk_info['thumb']
|
||||||
|
if not thumbnail.startswith('http'):
|
||||||
|
thumbnail = 'http://' + thumbnail
|
||||||
return {
|
return {
|
||||||
'id': video_id,
|
'id': video_id,
|
||||||
'title': talk_info['title'],
|
'title': talk_info['title'],
|
||||||
'uploader': talk_info['speaker'],
|
'uploader': talk_info['speaker'],
|
||||||
'thumbnail': talk_info['thumb'],
|
'thumbnail': thumbnail,
|
||||||
'description': self._og_search_description(webpage),
|
'description': self._og_search_description(webpage),
|
||||||
'subtitles': video_subtitles,
|
'subtitles': video_subtitles,
|
||||||
'formats': formats,
|
'formats': formats,
|
||||||
|
|
Loading…
Reference in a new issue