projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[youtube:user] Preserve user/c path segment
[youtube-dl]
/
youtube_dl
/
extractor
/
laola1tv.py
diff --git
a/youtube_dl/extractor/laola1tv.py
b/youtube_dl/extractor/laola1tv.py
index d9dc067d2bb08555bd0f0078c20952744827e463..2fab38079aac0c5f20a1772d52fa52642cb520bf 100644
(file)
--- a/
youtube_dl/extractor/laola1tv.py
+++ b/
youtube_dl/extractor/laola1tv.py
@@
-63,6
+63,7
@@
class Laola1TvIE(InfoExtractor):
'params': {
'skip_download': True,
},
'params': {
'skip_download': True,
},
+ 'skip': 'This live stream has already finished.',
}]
def _real_extract(self, url):
}]
def _real_extract(self, url):
@@
-74,6
+75,9
@@
class Laola1TvIE(InfoExtractor):
webpage = self._download_webpage(url, display_id)
webpage = self._download_webpage(url, display_id)
+ if 'Dieser Livestream ist bereits beendet.' in webpage:
+ raise ExtractorError('This live stream has already finished.', expected=True)
+
iframe_url = self._search_regex(
r'<iframe[^>]*?id="videoplayer"[^>]*?src="([^"]+)"',
webpage, 'iframe url')
iframe_url = self._search_regex(
r'<iframe[^>]*?id="videoplayer"[^>]*?src="([^"]+)"',
webpage, 'iframe url')
@@
-130,6
+134,7
@@
class Laola1TvIE(InfoExtractor):
formats = self._extract_f4m_formats(
'%s?hdnea=%s&hdcore=3.2.0' % (token_attrib['url'], token_auth),
video_id, f4m_id='hds')
formats = self._extract_f4m_formats(
'%s?hdnea=%s&hdcore=3.2.0' % (token_attrib['url'], token_auth),
video_id, f4m_id='hds')
+ self._sort_formats(formats)
categories_str = _v('meta_sports')
categories = categories_str.split(',') if categories_str else []
categories_str = _v('meta_sports')
categories = categories_str.split(',') if categories_str else []