From: Sergey M․ Date: Tue, 5 May 2015 15:49:36 +0000 (+0600) Subject: [lifenews] Use `_proto_relative_url` X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=b326b07adc49466a4bdd0ea3c63f329a9e523121;p=youtube-dl [lifenews] Use `_proto_relative_url` --- diff --git a/youtube_dl/extractor/lifenews.py b/youtube_dl/extractor/lifenews.py index 963f16e1a..081016b80 100644 --- a/youtube_dl/extractor/lifenews.py +++ b/youtube_dl/extractor/lifenews.py @@ -99,8 +99,7 @@ class LifeNewsIE(InfoExtractor): return cur_info if iframe_link: - if iframe_link.startswith('//'): - iframe_link = 'http:' + iframe_link + iframe_link = self._proto_relative_url(iframe_link, 'http:') cur_info = dict(common_info) cur_info.update({ '_type': 'url_transparent',