瀏覽代碼

[tnaflix] Make sure config URL has correct scheme

Sergey M․ 10 年之前
父節點
當前提交
68f705cac5
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      youtube_dl/extractor/tnaflix.py

+ 2 - 2
youtube_dl/extractor/tnaflix.py

@@ -49,8 +49,8 @@ class TNAFlixIE(InfoExtractor):
         if duration:
         if duration:
             duration = parse_duration(duration[1:])
             duration = parse_duration(duration[1:])
 
 
-        cfg_url = self._html_search_regex(
-            self._CONFIG_REGEX, webpage, 'flashvars.config')
+        cfg_url = self._proto_relative_url(self._html_search_regex(
+            self._CONFIG_REGEX, webpage, 'flashvars.config'), 'http:')
 
 
         cfg_xml = self._download_xml(
         cfg_xml = self._download_xml(
             cfg_url, display_id, note='Downloading metadata',
             cfg_url, display_id, note='Downloading metadata',