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: 修复解除区域限制和播放器相关问题 #96

Closed
wants to merge 4 commits into from

Conversation

Howard20181
Copy link
Contributor

@Howard20181 Howard20181 commented Nov 26, 2023

在使用 Android API 请求播放地址时始终关闭 referer 以防止视频地址403
Fix#57
播放器默认编码选择策略是先 av1 失败再试 hevc 再次失败再试 avc
如果第一个请求失败会标记 av1 失败,再失败会标记 hevc 失败,最终导致全程使用 avc
哔哩哔哩番剧区 avc 1080P 高码率不超过 1500,非常模糊

修复每次解除区域限制之后请求分辨率被重置为 1080P 非高码率的问题
修复播放器增强偶尔不加载的问题
修复番剧标题多一个“未定义”的问题
修复播放界面追番按钮状态
upos 服务器列表同步到界面

在使用 Android API 请求播放地址时始终关闭 referer 以防止视频地址403

播放器默认编码选择策略是先 av1 失败再试 hevc 再次失败再试 avc
如果第一个请求失败会标记 av1 失败,再失败会标记 hevc 失败,最终导致全程使用 avc
哔哩哔哩番剧区 avc 1080P 高码率不超过 1500,非常模糊
@Howard20181 Howard20181 changed the title fix: 修复播放界面中切集后第一个请求失败 fix: 修复解除区域限制和播放器相关问题 Nov 26, 2023
修复每次解除区域限制之后请求分辨率被重置为 1080P 非高码率的问题
修复播放器增强偶尔不加载的问题
修复番剧标题多一个“未定义”的问题
upos 服务器列表同步到界面
@Howard20181 Howard20181 marked this pull request as draft November 26, 2023 22:55
一个空格的惨案,排查一小时
@Howard20181 Howard20181 marked this pull request as ready for review November 26, 2023 23:27
return Promise.resolve(subtitles)
});
}
return await Promise.resolve(subtitles)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

既然用同步写法,那就没必要使用 Promise.resolve, 直接 return subtitles

seasonInfo.result.type = 1
const user_status = SEASON_CACHE
seasonInfo.result['user_status'] = {
area_limit: user_status.area_limit,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

从动态进入番剧,此处会报错。

@msojocs
Copy link
Owner

msojocs commented Nov 27, 2023

疑似瞎改,不予通过。

主分支:
image

此PR
image

@msojocs msojocs closed this Nov 27, 2023
@Howard20181
Copy link
Contributor Author

可是这个状态本来就是坏的

@Howard20181
Copy link
Contributor Author

还在尝试修
只要连续看过两个区域限制的番剧右侧的按钮就坏

@Howard20181
Copy link
Contributor Author

解除区域限制会改 referrer
pgc/view/web/season/user/status 这个 API 的结果就时好时坏的了

@Howard20181
Copy link
Contributor Author

现在全部修好了,如果需要的话重新打开 PR

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.

2 participants