From 8fd477c797b332cd598fc0956adb34988216e7ed Mon Sep 17 00:00:00 2001 From: Bart Broere Date: Mon, 19 May 2025 17:32:37 +0200 Subject: [PATCH] Match HTML tags --- youtube_dl/extractor/npo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/npo.py b/youtube_dl/extractor/npo.py index 26d31afb4..8d02ce840 100644 --- a/youtube_dl/extractor/npo.py +++ b/youtube_dl/extractor/npo.py @@ -357,7 +357,7 @@ class VPROIE(NPOIE): def _real_extract(self, url): video_id = url.rstrip('/').split('/')[-1] page = self._download_webpage(url, video_id) - format = traverse_obj(re.search(r'data-media-id="([a-zA-Z0-9_]+)"\s', page), ( + format = traverse_obj(re.search(r'<[\w.-]+\s[^>]*(?]+>', page), ( 1, T(lambda x: self._extract_formats_by_product_id(x, video_id)), Ellipsis))