keep the old pattern for player parameters in bilibily.py

This commit is contained in:
balibell 2018-03-13 18:53:49 +08:00
parent c5953ac41d
commit d67bd96970

View File

@ -94,6 +94,7 @@ class BiliBiliIE(InfoExtractor):
if 'anime/' not in url:
cid = compat_parse_qs(self._search_regex(
[r'EmbedPlayer\([^)]+,[^)]+,\s*\\"([^"]+)\\"\)',
r'EmbedPlayer\([^)]+,[^)]+,\s*"([^"]+)"\)',
r'<iframe[^>]+src="https://secure\.bilibili\.com/secure,([^"]+)"'],
webpage, 'player parameters'))['cid'][0]
else: