diff options
author | Sergey M․ <dstftw@gmail.com> | 2018-06-14 22:40:30 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2018-06-14 22:40:30 +0700 |
commit | 61cb66830f5097b528aab381eb6b343a89f73cbc (patch) | |
tree | 62a7a1a8788a49751f8343f1edbe4f1fb5660141 /youtube_dl | |
parent | c797db4a2fb7c8e41485bac74fe7f78295bab556 (diff) | |
download | youtube-dl-61cb66830f5097b528aab381eb6b343a89f73cbc.tar.xz |
[bilibili] Restrict cid regex (closes #16638, closes #16734)
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/bilibili.py | 2 |
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*"([^"]+)"\)', |