Skip to content

Commit

Permalink
1.9.9.2: 修复跨区
Browse files Browse the repository at this point in the history
  • Loading branch information
esterTion committed Dec 8, 2021
1 parent df37891 commit e23d1bb
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
4 changes: 2 additions & 2 deletions firefox_ext_update.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"acfun-player@estertion": {
"updates": [
{
"version": "1.9.9",
"update_link": "https://estertion.github.io/AcFun-HTML5-Player/signed.xpi?ver=1.9.9",
"version": "1.9.9.2",
"update_link": "https://estertion.github.io/AcFun-HTML5-Player/signed.xpi?ver=1.9.9.2",
"applications": {
"gecko": {
"strict_min_version": "57.0"
Expand Down
Binary file modified signed.crx
Binary file not shown.
Binary file modified signed.xpi
Binary file not shown.
9 changes: 3 additions & 6 deletions src/acfun_html5.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,10 @@ function chkInit() {
}).then(() => {
if (!pageInfo.currentVideoInfo) {
return fetch(
isBangumi ? 'https://tx.biliplus.com:7823/acfun_getBangumi_app?bangumiId=' + pageInfo.bangumiId + '&pageNo=1&pageSize=1000' : 'https://tx.biliplus.com:7823/acfun_getVideo_app?dougaId=' + pageInfo.dougaId
'https://tx.biliplus.com:7823/acfun_getVideoInfoByPage?path=' + encodeURIComponent(location.href.replace(location.origin, ''))
).then(r => r.json()).then(r => {
if (isBangumi) {
pageInfo.currentVideoInfo = (r.items.find(v => v.videoId == pageInfo.videoId) || {}).currentVideoInfo;
} else {
pageInfo.currentVideoInfo = r.currentVideoInfo;
}
const temp = this.cloneInto ? cloneInto(r.currentVideoInfo, pageInfo) : r.currentVideoInfo
pageInfo.currentVideoInfo = temp;
}).catch(e => console.error(e));
}
}).then(init)
Expand Down
8 changes: 8 additions & 0 deletions update_note.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# 更新日志

## 1.9.9.2
Dec 8th, 2021
- *修复跨区播放

## 1.9.9.1
Dec 1st, 2021
- *去除已经不再需要的webRequest权限

## 1.9.9
Jan 4th, 2021
- *修复跨区播放
Expand Down

0 comments on commit e23d1bb

Please sign in to comment.