projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2e24124
)
[laola1tv] Allow live stream downloads
author
Naglis Jonaitis
<njonaitis@gmail.com>
Thu, 26 Feb 2015 12:35:48 +0000
(14:35 +0200)
committer
Naglis Jonaitis
<njonaitis@gmail.com>
Thu, 26 Feb 2015 12:35:48 +0000
(14:35 +0200)
youtube_dl/extractor/laola1tv.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/laola1tv.py
b/youtube_dl/extractor/laola1tv.py
index e8ca49fd1564d8b3c2def7551645cd0179642f97..b459559b0349bcae6c8d658c2fb120c2cb81d37e 100644
(file)
--- a/
youtube_dl/extractor/laola1tv.py
+++ b/
youtube_dl/extractor/laola1tv.py
@@
-27,8
+27,6
@@
class Laola1TvIE(InfoExtractor):
}
}
}
}
- _BROKEN = True # Not really - extractor works fine, but f4m downloader does not support live streams yet.
-
def _real_extract(self, url):
mobj = re.match(self._VALID_URL, url)
video_id = mobj.group('id')
def _real_extract(self, url):
mobj = re.match(self._VALID_URL, url)
video_id = mobj.group('id')
@@
-57,11
+55,7
@@
class Laola1TvIE(InfoExtractor):
title = xpath_text(hd_doc, './/video/title', fatal=True)
flash_url = xpath_text(hd_doc, './/video/url', fatal=True)
uploader = xpath_text(hd_doc, './/video/meta_organistation')
title = xpath_text(hd_doc, './/video/title', fatal=True)
flash_url = xpath_text(hd_doc, './/video/url', fatal=True)
uploader = xpath_text(hd_doc, './/video/meta_organistation')
-
is_live = xpath_text(hd_doc, './/video/islive') == 'true'
is_live = xpath_text(hd_doc, './/video/islive') == 'true'
- if is_live:
- raise ExtractorError(
- 'Live streams are not supported by the f4m downloader.')
categories = xpath_text(hd_doc, './/video/meta_sports')
if categories:
categories = xpath_text(hd_doc, './/video/meta_sports')
if categories: