diff options
author | Jaime Marquínez Ferrándiz <[email protected]> | 2014-08-10 10:45:27 +0200 |
---|---|---|
committer | Jaime Marquínez Ferrándiz <[email protected]> | 2014-08-10 10:45:27 +0200 |
commit | 4dc5286e1341adcd8c6b9876b06f8efbe6b9d89e (patch) | |
tree | ca8adc99f136deccb95185739a68ab77e7f0466e | |
parent | c767dc74b8bdfdc75bba14d11b460a95f85ed08d (diff) | |
download | youtube-dl-4dc5286e1341adcd8c6b9876b06f8efbe6b9d89e.tar.gz youtube-dl-4dc5286e1341adcd8c6b9876b06f8efbe6b9d89e.zip |
[reverbnation] Make sure that the thumbnail url contain the protocol
They are protocol relative.
-rw-r--r-- | youtube_dl/extractor/reverbnation.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/youtube_dl/extractor/reverbnation.py b/youtube_dl/extractor/reverbnation.py index 49cf427a1..6435beb5c 100644 --- a/youtube_dl/extractor/reverbnation.py +++ b/youtube_dl/extractor/reverbnation.py @@ -17,7 +17,7 @@ class ReverbNationIE(InfoExtractor): "title": "MONA LISA", "uploader": "ALKILADOS", "uploader_id": 216429, - "thumbnail": "//gp1.wac.edgecastcdn.net/802892/production_public/Photo/13761700/image/1366002176_AVATAR_MONA_LISA.jpg" + "thumbnail": "re:^https://gp1\.wac\.edgecastcdn\.net/.*?\.jpg$" }, }] @@ -39,7 +39,8 @@ class ReverbNationIE(InfoExtractor): 'url': api_res.get('url'), 'uploader': api_res.get('artist', {}).get('name'), 'uploader_id': api_res.get('artist', {}).get('id'), - 'thumbnail': api_res.get('image', api_res.get('thumbnail')), + 'thumbnail': self._proto_relative_url( + api_res.get('image', api_res.get('thumbnail'))), 'ext': 'mp3', 'vcodec': 'none', } |