[bilibili] Restrict cid regex (closes #16638, closes #16734)

pull/8/head
Sergey M․ 7 years ago
parent c797db4a2f
commit 61cb66830f
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D

@ -114,7 +114,7 @@ class BiliBiliIE(InfoExtractor):
if 'anime/' not in url:
cid = self._search_regex(
r'cid(?:["\']:|=)(\d+)', webpage, 'cid',
r'\bcid(?:["\']:|=)(\d+)', webpage, 'cid',
default=None
) or compat_parse_qs(self._search_regex(
[r'EmbedPlayer\([^)]+,\s*"([^"]+)"\)',

Loading…
Cancel
Save