Fix flake8

This commit is contained in:
Bart Broere 2025-05-25 16:50:35 +02:00
parent dce0e96038
commit d763512d2c

View file

@ -376,8 +376,8 @@ class VPROIE(NPOIE):
video_id = url.rstrip('/').split('/')[-1]
page = self._download_webpage(url, video_id)
formats = traverse_obj(re.search(r'<[\w.-]+\s[^>]*(?<!-)\bdata-media-id="([a-zA-Z0-9_]+)"', page), (
1, T(lambda x: self._extract_formats_by_product_id(x, video_id)),
Ellipsis))
1, T(lambda x: self._extract_formats_by_product_id(x, video_id)),
Ellipsis))
self._sort_formats(formats)