aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2018-06-14 22:40:30 +0700
committerSergey M․ <dstftw@gmail.com>2018-06-14 22:40:30 +0700
commit61cb66830f5097b528aab381eb6b343a89f73cbc (patch)
tree62a7a1a8788a49751f8343f1edbe4f1fb5660141 /youtube_dl/extractor
parentc797db4a2fb7c8e41485bac74fe7f78295bab556 (diff)
[bilibili] Restrict cid regex (closes #16638, closes #16734)
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/bilibili.py2
1 files changed, 1 insertions, 1 deletions
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*"([^"]+)"\)',