]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[bandcamp] Prepend download URL with scheme when necessary (2) (#7077)
authorSergey M․ <dstftw@gmail.com>
Fri, 16 Oct 2015 18:46:38 +0000 (00:46 +0600)
committerSergey M․ <dstftw@gmail.com>
Fri, 16 Oct 2015 18:46:38 +0000 (00:46 +0600)
youtube_dl/extractor/bandcamp.py

index a27f3e7488add9836ee7724b67195d1a4541de4b..f19e19001bef41311a8fd31666e27784335e805b 100644 (file)
@@ -52,7 +52,7 @@ class BandcampIE(InfoExtractor):
                     ext, abr_str = format_id.split('-', 1)
                     formats.append({
                         'format_id': format_id,
-                        'url': format_url,
+                        'url': self._proto_relative_url(format_url, 'http:'),
                         'ext': ext,
                         'vcodec': 'none',
                         'acodec': ext,