Explorar o código

[lifenews] Use `_proto_relative_url`

Sergey M․ %!s(int64=10) %!d(string=hai) anos
pai
achega
b326b07adc
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      youtube_dl/extractor/lifenews.py

+ 1 - 2
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',