1
1
mirror of https://github.com/ytdl-org/youtube-dl synced 2024-12-04 18:23:06 +01:00

Change regex for better matching

This commit is contained in:
01001110 2023-04-02 19:31:05 +08:00
parent 6a9848f94a
commit 24e84f0000

View File

@ -49,7 +49,7 @@ class ChelseafcIE(InfoExtractor):
webpage = self._download_webpage(url, video_id) webpage = self._download_webpage(url, video_id)
video_details_div = self._search_regex( video_details_div = self._search_regex(
r'(<div[^>]*\sdata-component\s*=\s*(?:"|\')\s*VideoDetails\s*(?:"|\')[^>]*>)', r'(<div\s[^>]*\bdata-component\s*=\s*(?:"|\')\s*VideoDetails\s*(?:"|\')[^>]*>)',
webpage, webpage,
'div' 'div'
) )