Skip to content

Commit

Permalink
fix: 修正番剧出差动态番剧播放失败 #122
Browse files Browse the repository at this point in the history
  • Loading branch information
msojocs committed Jun 16, 2024
1 parent be65995 commit 0f187e0
Show file tree
Hide file tree
Showing 7 changed files with 671 additions and 21 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 🌈 v1.13.6-1 / 2024-06-15
# 🌈 v1.13.6-2 / 2024-06-

## 🚀 功能

Expand All @@ -7,6 +7,7 @@
## 🐞 修复

- 番剧出差:修正出差卡片数据处理错误
- 番剧出差:修正动态番剧播放失败

# 🌈 v1.13.6-1 / 2024-06-15

Expand Down
5 changes: 5 additions & 0 deletions extensions/area_unlimit/hook/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -1260,8 +1260,13 @@ const URL_HOOK_FETCH = {
// 获取动态详情
const bili = new BiliBiliApi();
const detail = await bili.getDynamicDetail(b2d.dynamic_id)
const dynamicDetail = await biliBridgePc.callNative('roaming/queryDynamicDetail', b2d.dynamic_id, UTILS.getAccessToken())
log.info('dynamic detail phone:', dynamicDetail)
const dynamic = dynamicDetail.item.modules.find(e => e.module_type === 'module_dynamic')
const epid = dynamic.module_dynamic.dyn_archive.uri.match(/ep\d+/)[0]
// 构造数据
const res = await UTILS.genVideoDetailByDynamicDetail(detail.data)
res.View.redirect_url = `https://www.bilibili.com/bangumi/play/${epid}`
log.info('dynamic detail:', res)
data.res.data = {
code: 0,
Expand Down
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,10 @@
"app-builder-lib": "24.13.3",
"builder-util": "24.13.1",
"electron-builder": "^24.13.3"
},
"dependencies": {
"@grpc/grpc-js": "^1.10.9",
"@grpc/proto-loader": "^0.7.13",
"protobufjs": "^7.3.2"
}
}
122 changes: 104 additions & 18 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0f187e0

Please sign in to comment.