From: Sergey M․ Date: Thu, 14 Jun 2018 15:40:30 +0000 (+0700) Subject: [bilibili] Restrict cid regex (closes #16638, closes #16734) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=61cb66830f5097b528aab381eb6b343a89f73cbc;p=youtube-dl [bilibili] Restrict cid regex (closes #16638, closes #16734) --- diff --git a/youtube_dl/extractor/bilibili.py b/youtube_dl/extractor/bilibili.py index 3e3348ef5..4d6b051fe 100644 --- 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*"([^"]+)"\)',