[tnaflix] Make sure config URL has correct scheme
authorSergey M․ <dstftw@gmail.com>
Wed, 31 Dec 2014 18:12:41 +0000 (00:12 +0600)
committerSergey M․ <dstftw@gmail.com>
Wed, 31 Dec 2014 18:12:41 +0000 (00:12 +0600)
youtube_dl/extractor/tnaflix.py

index b9179ca8089d1a05dc5e2b2c9bacdfc0cfbf9701..d48cbbf140054e639f7191acfa0909972ef3ab76 100644 (file)
@@ -49,8 +49,8 @@ class TNAFlixIE(InfoExtractor):
         if duration:
             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_url, display_id, note='Downloading metadata',