projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
240f262
)
[telebruxelles] Fix extraction (closes #15504)
author
Sergey M․
<dstftw@gmail.com>
Mon, 5 Feb 2018 16:43:07 +0000
(23:43 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Mon, 5 Feb 2018 16:56:00 +0000
(23:56 +0700)
youtube_dl/extractor/telebruxelles.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/telebruxelles.py
b/youtube_dl/extractor/telebruxelles.py
index 5886e9c1bb7e0c4e9b192480ac2cfa48118ffe2a..8c7465d063b1bfa8783e037ad645312aa71f13b6 100644
(file)
--- a/
youtube_dl/extractor/telebruxelles.py
+++ b/
youtube_dl/extractor/telebruxelles.py
@@
-38,13
+38,14
@@
class TeleBruxellesIE(InfoExtractor):
webpage = self._download_webpage(url, display_id)
article_id = self._html_search_regex(
webpage = self._download_webpage(url, display_id)
article_id = self._html_search_regex(
- r
"<article id=\"post-(\d+)\""
, webpage, 'article ID', default=None)
+ r
'<article[^>]+\bid=["\']post-(\d+)'
, webpage, 'article ID', default=None)
title = self._html_search_regex(
title = self._html_search_regex(
- r'<h1 class=\"entry-title\">(.*?)</h1>', webpage, 'title')
+ r'<h1[^>]*>(.+?)</h1>', webpage, 'title',
+ default=None) or self._og_search_title(webpage)
description = self._og_search_description(webpage, default=None)
rtmp_url = self._html_search_regex(
description = self._og_search_description(webpage, default=None)
rtmp_url = self._html_search_regex(
- r'file\s*:\s*"(rtmp://[^/]+/vod/mp4:"\s*\+\s*"[^"]+"\s*\+\s*".mp4)"',
+ r'file\s*:\s*"(rtmp
s?
://[^/]+/vod/mp4:"\s*\+\s*"[^"]+"\s*\+\s*".mp4)"',
webpage, 'RTMP url')
rtmp_url = re.sub(r'"\s*\+\s*"', '', rtmp_url)
formats = self._extract_wowza_formats(rtmp_url, article_id or display_id)
webpage, 'RTMP url')
rtmp_url = re.sub(r'"\s*\+\s*"', '', rtmp_url)
formats = self._extract_wowza_formats(rtmp_url, article_id or display_id)