aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/lifenews.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-05-05 21:49:36 +0600
committerSergey M․ <dstftw@gmail.com>2015-05-05 21:49:36 +0600
commitb326b07adc49466a4bdd0ea3c63f329a9e523121 (patch)
tree844ffe8ba9bfe7567c711d1afad0ef7a9ce3280b /youtube_dl/extractor/lifenews.py
parent07d2921c6d13ce43adb9347677e50c36268fe54f (diff)
downloadyoutube-dl-b326b07adc49466a4bdd0ea3c63f329a9e523121.tar.xz
[lifenews] Use `_proto_relative_url`
Diffstat (limited to 'youtube_dl/extractor/lifenews.py')
-rw-r--r--youtube_dl/extractor/lifenews.py3
1 files changed, 1 insertions, 2 deletions
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',