projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[youtube] Add support for invidiou.sh (#20309)
[youtube-dl]
/
youtube_dl
/
extractor
/
bilibili.py
diff --git
a/youtube_dl/extractor/bilibili.py
b/youtube_dl/extractor/bilibili.py
index 3e3348ef5baed8f6e9a31634778421c921e352ce..3746671d3c110db6ee66f16193159f5ed8897d51 100644
(file)
--- a/
youtube_dl/extractor/bilibili.py
+++ b/
youtube_dl/extractor/bilibili.py
@@
-93,8
+93,8
@@
class BiliBiliIE(InfoExtractor):
}]
}]
}]
}]
- _APP_KEY = '
84956560bc028eb7
'
- _BILIBILI_KEY = '
94aba54af9065f71de72f5508f1cd42e
'
+ _APP_KEY = '
iVGUTjsxvpLeuDCf
'
+ _BILIBILI_KEY = '
aHRmhWMLkdeMuILqORnYZocwMBpMEOdt
'
def _report_error(self, result):
if 'message' in result:
def _report_error(self, result):
if 'message' in result:
@@
-114,7
+114,7
@@
class BiliBiliIE(InfoExtractor):
if 'anime/' not in url:
cid = self._search_regex(
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*"([^"]+)"\)',
default=None
) or compat_parse_qs(self._search_regex(
[r'EmbedPlayer\([^)]+,\s*"([^"]+)"\)',