commit 61cb66830f5097b528aab381eb6b343a89f73cbc
parent c797db4a2fb7c8e41485bac74fe7f78295bab556
Author: Sergey M․ <dstftw@gmail.com>
Date:   Thu, 14 Jun 2018 22:40:30 +0700

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

Diffstat:
Myoutube_dl/extractor/bilibili.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/youtube_dl/extractor/bilibili.py b/youtube_dl/extractor/bilibili.py @@ -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*"([^"]+)"\)',