浏览代码

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

Sergey M․ 10 年之前
父节点
当前提交
1e52776ac3
共有 1 个文件被更改,包括 1 次插入1 次删除
  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)
                     formats.append({
                         'format_id': format_id,
-                        'url': format_url,
+                        'url': self._proto_relative_url(format_url, 'http:'),
                         'ext': ext,
                         'vcodec': 'none',
                         'acodec': ext,