diff options
author | Jaime Marquínez Ferrándiz <[email protected]> | 2014-03-16 11:24:11 +0100 |
---|---|---|
committer | Jaime Marquínez Ferrándiz <[email protected]> | 2014-03-16 11:24:11 +0100 |
commit | b6c1ceccc229c174cae5432c7701399267d41943 (patch) | |
tree | 5610bb02edda43cc2a164884e45ad704ba5ecf01 /youtube_dl | |
parent | 6563837ee1e62ed33aa223f4bf6f11addaab140a (diff) | |
download | youtube-dl-b6c1ceccc229c174cae5432c7701399267d41943.tar.gz youtube-dl-b6c1ceccc229c174cae5432c7701399267d41943.zip |
[ted] Add 'http://' to the thumbnail url if it's missing
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/ted.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/youtube_dl/extractor/ted.py b/youtube_dl/extractor/ted.py index cf10be2d0..3968b718e 100644 --- a/youtube_dl/extractor/ted.py +++ b/youtube_dl/extractor/ted.py @@ -93,11 +93,14 @@ class TEDIE(SubtitlesInfoExtractor): self._list_available_subtitles(video_id, talk_info) return + thumbnail = talk_info['thumb'] + if not thumbnail.startswith('http'): + thumbnail = 'http://' + thumbnail return { 'id': video_id, 'title': talk_info['title'], 'uploader': talk_info['speaker'], - 'thumbnail': talk_info['thumb'], + 'thumbnail': thumbnail, 'description': self._og_search_description(webpage), 'subtitles': video_subtitles, 'formats': formats, |