1
0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-16 14:27:53 +00: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)
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,
'div'
)