projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0669f8f
)
[bilibili] Remove debug from player params regexes
author
Sergey M․
<dstftw@gmail.com>
Sat, 31 Mar 2018 19:06:14 +0000
(
02:06
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 31 Mar 2018 19:06:58 +0000
(
02:06
+0700)
youtube_dl/extractor/bilibili.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/bilibili.py
b/youtube_dl/extractor/bilibili.py
index 90697c4a7a674ae2b640a2178ad46c6df78ee943..3e3348ef5baed8f6e9a31634778421c921e352ce 100644
(file)
--- a/
youtube_dl/extractor/bilibili.py
+++ b/
youtube_dl/extractor/bilibili.py
@@
-117,9
+117,9
@@
class BiliBiliIE(InfoExtractor):
r'cid(?:["\']:|=)(\d+)', webpage, 'cid',
default=None
) or compat_parse_qs(self._search_regex(
r'cid(?:["\']:|=)(\d+)', webpage, 'cid',
default=None
) or compat_parse_qs(self._search_regex(
- [r'
1
EmbedPlayer\([^)]+,\s*"([^"]+)"\)',
- r'
1
EmbedPlayer\([^)]+,\s*\\"([^"]+)\\"\)',
- r'
1
<iframe[^>]+src="https://secure\.bilibili\.com/secure,([^"]+)"'],
+ [r'EmbedPlayer\([^)]+,\s*"([^"]+)"\)',
+ r'EmbedPlayer\([^)]+,\s*\\"([^"]+)\\"\)',
+ r'<iframe[^>]+src="https://secure\.bilibili\.com/secure,([^"]+)"'],
webpage, 'player parameters'))['cid'][0]
else:
if 'no_bangumi_tip' not in smuggled_data:
webpage, 'player parameters'))['cid'][0]
else:
if 'no_bangumi_tip' not in smuggled_data: