projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c797db4
)
[bilibili] Restrict cid regex (closes #16638, closes #16734)
author
Sergey M․
<dstftw@gmail.com>
Thu, 14 Jun 2018 15:40:30 +0000
(22:40 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Thu, 14 Jun 2018 15:40:30 +0000
(22:40 +0700)
youtube_dl/extractor/bilibili.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/bilibili.py
b/youtube_dl/extractor/bilibili.py
index 3e3348ef5baed8f6e9a31634778421c921e352ce..4d6b051fe102256f1733c99e6d42697324948c8f 100644
(file)
--- 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'
\b
cid(?:["\']:|=)(\d+)', webpage, 'cid',
default=None
) or compat_parse_qs(self._search_regex(
[r'EmbedPlayer\([^)]+,\s*"([^"]+)"\)',