mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-08 09:10:09 +01:00
[telebruxelles] Fix extraction (closes #15504)
This commit is contained in:
parent
240f26229d
commit
bcf150e435
@ -38,13 +38,14 @@ def _real_extract(self, url):
|
|||||||
webpage = self._download_webpage(url, display_id)
|
webpage = self._download_webpage(url, display_id)
|
||||||
|
|
||||||
article_id = self._html_search_regex(
|
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)
|
description = self._og_search_description(webpage, default=None)
|
||||||
|
|
||||||
rtmp_url = self._html_search_regex(
|
rtmp_url = self._html_search_regex(
|
||||||
r'file\s*:\s*"(rtmp://[^/]+/vod/mp4:"\s*\+\s*"[^"]+"\s*\+\s*".mp4)"',
|
r'file\s*:\s*"(rtmps?://[^/]+/vod/mp4:"\s*\+\s*"[^"]+"\s*\+\s*".mp4)"',
|
||||||
webpage, 'RTMP url')
|
webpage, 'RTMP url')
|
||||||
rtmp_url = re.sub(r'"\s*\+\s*"', '', rtmp_url)
|
rtmp_url = re.sub(r'"\s*\+\s*"', '', rtmp_url)
|
||||||
formats = self._extract_wowza_formats(rtmp_url, article_id or display_id)
|
formats = self._extract_wowza_formats(rtmp_url, article_id or display_id)
|
||||||
|
Loading…
Reference in New Issue
Block a user