summary refs log tree commit diff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-10-06 22:58:18 +0600
committerSergey M․ <dstftw@gmail.com>2015-10-06 22:58:18 +0600
commitf648e682a7a82f71a278ec92159ac5d343a4b3eb (patch)
tree0c331034bec6f9d62a4e656d54662a1642ec05fe
parentf2dbc54066f56a98c689099b920e6a596d4ffdfc (diff)
downloadyoutube-dl-f648e682a7a82f71a278ec92159ac5d343a4b3eb.tar.gz
youtube-dl-f648e682a7a82f71a278ec92159ac5d343a4b3eb.tar.xz
youtube-dl-f648e682a7a82f71a278ec92159ac5d343a4b3eb.zip
[bandcamp] Prepend download URL with scheme when necessary (Closes #7077)
-rw-r--r--youtube_dl/extractor/bandcamp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/bandcamp.py b/youtube_dl/extractor/bandcamp.py
index 505877b77..a27f3e748 100644
--- a/youtube_dl/extractor/bandcamp.py
+++ b/youtube_dl/extractor/bandcamp.py
@@ -93,8 +93,8 @@ class BandcampIE(InfoExtractor):
         final_url_webpage = self._download_webpage(request_url, video_id, 'Requesting download url')
         # If we could correctly generate the .rand field the url would be
         # in the "download_url" key
-        final_url = self._search_regex(
-            r'"retry_url":"(.*?)"', final_url_webpage, 'final video URL')
+        final_url = self._proto_relative_url(self._search_regex(
+            r'"retry_url":"(.+?)"', final_url_webpage, 'final video URL'), 'http:')
 
         return {
             'id': video_id,