Skip to content

Commit

Permalink
fix: 港澳台播放链接解析失败
Browse files Browse the repository at this point in the history
  • Loading branch information
msojocs committed Nov 6, 2024
1 parent ef0caf5 commit 6832f9c
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
## 🐞 修复

- 插件:执行过程中报错。
- 漫游:播放链接解析失败。

# 🌈 v1.14.2-1 / 2024-09-22

Expand Down
2 changes: 1 addition & 1 deletion extensions/area_unlimit/hook.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const URLS = {
login: runtiime.getURL(`hook/login.js`),
search: runtiime.getURL(`hook/search.js`),
player: runtiime.getURL(`hook/player.js`),
biliapp: runtiime.getURL(`hook/biliapp.js`),
index: runtiime.getURL(`hook/index.js`),
commonJS: runtiime.getURL(`hook/common.js`),
commonCSS: runtiime.getURL(`hook/common.css`),
RoamingPage: runtiime.getURL(`hook/RoamingPage.html`),
Expand Down
2 changes: 1 addition & 1 deletion extensions/area_unlimit/hook/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,7 @@ const URL_HOOK = {
* @param {XMLHttpRequest} req 原请求结果
* @returns {Promise<void>}
*/
"//api.bilibili.com/pgc/player/web/playurl": async (req) => {
"//api.bilibili.com/pgc/player/web/v2/playurl": async (req) => {
const resp = JSON.parse(req.responseText)

// 默认pc,要referer
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion extensions/area_unlimit/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"hook/hook.js",
"hook/player.js",
"hook/login.js",
"hook/biliapp.js",
"hook/index.js",
"hook/search.js",
"hook/common.css",
"hook/common.js",
Expand Down

0 comments on commit 6832f9c

Please sign in to comment.