From 682f4d90bbc2812a98228038c405146a586c7ebc Mon Sep 17 00:00:00 2001 From: msojocs Date: Fri, 17 Jun 2022 20:09:24 +0800 Subject: [PATCH] bilibili: update to v1.2.1.724 --- CHANGELOG.MD | 6 +++++- conf/bilibili_version | 2 +- extensions/area_unlimit/hook/common.js | 4 +++- tools/fix-other.sh | 16 ++++++++-------- 4 files changed, 17 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.MD b/CHANGELOG.MD index cf2e452..dc057e8 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -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: 修正东南亚图片显示异常 diff --git a/conf/bilibili_version b/conf/bilibili_version index 8d7b5a9..6842d34 100644 --- a/conf/bilibili_version +++ b/conf/bilibili_version @@ -1 +1 @@ -1.2.0.700 \ No newline at end of file +1.2.1.724 \ No newline at end of file diff --git a/extensions/area_unlimit/hook/common.js b/extensions/area_unlimit/hook/common.js index 291d9e4..f97b50e 100644 --- a/extensions/area_unlimit/hook/common.js +++ b/extensions/area_unlimit/hook/common.js @@ -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; @@ -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) } diff --git a/tools/fix-other.sh b/tools/fix-other.sh index 4f3082c..e0d3129 100755 --- a/tools/fix-other.sh +++ b/tools/fix-other.sh @@ -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" .