Skip to content

Commit

Permalink
bilibili: update to v1.2.1.724
Browse files Browse the repository at this point in the history
  • Loading branch information
msojocs committed Jun 17, 2022
1 parent e1ac267 commit 682f4d9
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 11 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# v1.2.0-1 / 2022-06-
# v1.2.1-1 / 2022-06-17

- bilibili: update to v1.2.1.724

# v1.2.0-1 / 2022-06-17

- perf: 对搜索进行超时限制
- fix: 修正东南亚图片显示异常
Expand Down
2 changes: 1 addition & 1 deletion conf/bilibili_version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.2.0.700
1.2.1.724
4 changes: 3 additions & 1 deletion extensions/area_unlimit/hook/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ const URL_HOOK = {
})
// 处理部分番剧存在平台限制
seasonInfo.result.rights.watch_platform = 0
seasonInfo.result.rights.allow_download = 1
console.log('seasonInfo1: ', seasonInfo)
req.responseText = JSON.stringify(seasonInfo)
return;
Expand All @@ -195,13 +196,14 @@ const URL_HOOK = {
ep.status = 2
})
seasonInfo.result.rights.watch_platform = 0
seasonInfo.result.rights.allow_download = 1
console.log('seasonInfo2: ', seasonInfo)
req.responseText = JSON.stringify(seasonInfo)

}else{
// 一些番剧可以获取到信息,但是内部有限制区域
resp.result.episodes.forEach(ep => {
ep.rights && (ep.rights.area_limit = 0,ep.rights.allow_dm = 0)
ep.rights && (ep.rights.area_limit = 0,ep.rights.allow_dm = 0,ep.rights.allow_download = 1)
})
req.responseText = JSON.stringify(resp)
}
Expand Down
16 changes: 8 additions & 8 deletions tools/fix-other.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ sed -i 's#global;import_electron2#global;!import_electron2#' app/main/index.js
notice "====app.js===="

notice "屏蔽检测"
grep -lr 'if(!h8){' --exclude="app.asar" .
sed -i 's#if(!h8){#if(false\&\&!h8){#' app/main/app.js
grep -lr '}BG.app' --exclude="app.asar" .
sed -i 's#}BG.app#}false\&\&BG.app#' app/main/app.js
grep -lr 'if(!BQ){' --exclude="app.asar" .
sed -i 's#if(!BQ){#if(false\&\&!BQ){#' app/main/app.js
grep -lr ';!h8' --exclude="app.asar" .
sed -i 's#;!h8#;false\&\&!h8#' app/main/app.js
grep -lr 'if(!c8){' --exclude="app.asar" .
sed -i 's#if(!c8){#if(false\&\&!c8){#' app/main/app.js
grep -lr '}Nu.app' --exclude="app.asar" .
sed -i 's#}Nu.app#}false\&\&Nu.app#' app/main/app.js
grep -lr 'if(!NC){' --exclude="app.asar" .
sed -i 's#if(!NC){#if(false\&\&!NC){#' app/main/app.js
grep -lr ';}!c8' --exclude="app.asar" .
sed -i 's#;}!c8#;}false\&\&!c8#' app/main/app.js

notice "路由"
grep -lr 'case"SettingsPage":return r.push({name:"Settings"});c' --exclude="app.asar" .
Expand Down

0 comments on commit 682f4d9

Please sign in to comment.