Browse Source

[bandcamp] Prepend download URL with scheme when necessary (2) (#7077)

Sergey M․ 10 years ago
parent
commit
1e52776ac3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      youtube_dl/extractor/bandcamp.py

+ 1 - 1
youtube_dl/extractor/bandcamp.py

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