[ie/IPrima] Making the pattern more flexible.

Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
This commit is contained in:
Oto Valek 2024-09-13 00:20:48 +02:00
parent 159d21b7c8
commit b9abf22581

View file

@ -131,7 +131,7 @@ def _real_extract(self, url):
video_id = self._search_regex((
r'productId\s*=\s*([\'"])(?P<id>p\d+)\1',
r'pproduct_id\s*=\s*([\'"])(?P<id>p\d+)\1',
r'let videos\s*=\s*([\'"])(?P<id>p\d+)\1',
r'let\s+videos\s*=\s*([\'"])(?P<id>p\d+)\1',
), webpage, 'real id', group='id', default=None)
if not video_id: