projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07d2921
)
[lifenews] Use `_proto_relative_url`
author
Sergey M․
<dstftw@gmail.com>
Tue, 5 May 2015 15:49:36 +0000
(21:49 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Tue, 5 May 2015 15:49:36 +0000
(21:49 +0600)
youtube_dl/extractor/lifenews.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/lifenews.py
b/youtube_dl/extractor/lifenews.py
index 963f16e1ab317b652a4c9ed7dc771d98add35a0e..081016b8014afaf210eabe34404b7cd643fb65de 100644
(file)
--- 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',