From 24e84f000084e5ba50547cac6c2ed1a0ada861f2 Mon Sep 17 00:00:00 2001 From: 01001110 Date: Sun, 2 Apr 2023 19:31:05 +0800 Subject: [PATCH] Change regex for better matching --- youtube_dl/extractor/chelseafc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/chelseafc.py b/youtube_dl/extractor/chelseafc.py index b999354b5..ad10251c8 100644 --- a/youtube_dl/extractor/chelseafc.py +++ b/youtube_dl/extractor/chelseafc.py @@ -49,7 +49,7 @@ class ChelseafcIE(InfoExtractor): webpage = self._download_webpage(url, video_id) video_details_div = self._search_regex( - r'(]*\sdata-component\s*=\s*(?:"|\')\s*VideoDetails\s*(?:"|\')[^>]*>)', + r'(]*\bdata-component\s*=\s*(?:"|\')\s*VideoDetails\s*(?:"|\')[^>]*>)', webpage, 'div' )