diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-06-04 20:42:37 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-06-04 20:42:37 +0600 |
commit | 3d6388e34ea41d937f39e561b7731f1389971a66 (patch) | |
tree | d5e6a41485d8e8bb0e93f24d203dbe18477bcc4c | |
parent | 3ce9bc712acd88df8499dd0982277c8f64b0d15a (diff) |
[tnaflix] Fix relative URLs (empflix)
-rw-r--r-- | youtube_dl/extractor/tnaflix.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/youtube_dl/extractor/tnaflix.py b/youtube_dl/extractor/tnaflix.py index 3e335d653..c282865b2 100644 --- a/youtube_dl/extractor/tnaflix.py +++ b/youtube_dl/extractor/tnaflix.py @@ -61,14 +61,15 @@ class TNAFlixIE(InfoExtractor): cfg_url, display_id, note='Downloading metadata', transform_source=fix_xml_ampersands) - thumbnail = cfg_xml.find('./startThumb').text + thumbnail = self._proto_relative_url( + cfg_xml.find('./startThumb').text, 'http:') formats = [] for item in cfg_xml.findall('./quality/item'): video_url = re.sub('speed=\d+', 'speed=', item.find('videoLink').text) format_id = item.find('res').text fmt = { - 'url': video_url, + 'url': self._proto_relative_url(video_url, 'http:'), 'format_id': format_id, } m = re.search(r'^(\d+)', format_id) |