Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: ep类型需要'回到旧版'才能正常解析 #135

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Brainor
Copy link

@Brainor Brainor commented Sep 22, 2023

相关issue: #130 , #123.
ep页面有这样的图标来切换'新版'和'旧版'
image
默认(至少我的账户)会来到新版, 会导致

const parseBV = async (html: string, url: string) => {
try {
const videoInfo = html.match(/\<\/script\>\<script\>window\.\_\_INITIAL\_STATE\_\_\=([\s\S]*?)\;\(function\(\)/)
if (!videoInfo) throw new Error('parse bv error')
函数出错
貌似在cookies中加上go-old-ogv-video=1就可以来到旧版.

烦请会搭建项目的大佬们测试一下, 测试网址: https://www.bilibili.com/bangumi/play/ep744054 , 非常感谢.

src/core/bilibili.ts Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants