From 95498c074cb86c496cf7cc645f30759c57cdd195 Mon Sep 17 00:00:00 2001 From: Waua Date: Mon, 26 Feb 2024 21:28:56 +0800 Subject: [PATCH 1/4] Fix toggleLight --- src/components/video/player-agent/base.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/video/player-agent/base.ts b/src/components/video/player-agent/base.ts index ddd94f41b..7d9582b3b 100644 --- a/src/components/video/player-agent/base.ts +++ b/src/components/video/player-agent/base.ts @@ -97,11 +97,11 @@ export abstract class PlayerAgent } // 关灯状态 && 要开灯 -> 开灯 if (on && isCurrentLightOff) { - this.nativeApi.setLightOff(true) + this.nativeApi.setLightOff(false) return true } if (!on && !isCurrentLightOff) { - this.nativeApi.setLightOff(false) + this.nativeApi.setLightOff(true) return false } return null From b5dfbcc45517b5bb0f4bad89fa373216d86525f3 Mon Sep 17 00:00:00 2001 From: sunfkny <30853461+sunfkny@users.noreply.github.com> Date: Sat, 2 Mar 2024 12:04:12 +0800 Subject: [PATCH 2/4] =?UTF-8?q?[=E7=BB=84=E4=BB=B6-=E7=A6=81=E6=AD=A2?= =?UTF-8?q?=E8=B7=B3=E8=BD=AC=E5=8A=A8=E6=80=81=E8=AF=A6=E6=83=85]=20fix:?= =?UTF-8?q?=20=E4=BF=AE=E5=A4=8D=E5=B8=A6=E5=9B=BE=E8=BD=AC=E5=8F=91?= =?UTF-8?q?=E5=8A=A8=E6=80=81=E7=9A=84=20`=E6=9F=A5=E7=9C=8B=E5=9B=BE?= =?UTF-8?q?=E7=89=87`=20=E5=A4=B1=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 例如 https://t.bilibili.com/904142297159958549 --- registry/lib/components/feeds/disable-details/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/registry/lib/components/feeds/disable-details/index.ts b/registry/lib/components/feeds/disable-details/index.ts index c90f8112a..cfc9e9a4b 100644 --- a/registry/lib/components/feeds/disable-details/index.ts +++ b/registry/lib/components/feeds/disable-details/index.ts @@ -32,6 +32,9 @@ const entry = async () => { if (target.hasAttribute('click-title')) { return } + if (target.hasAttribute('data-pics')) { + return + } if ( [ 'bili-rich-text__action', From 312a86827353d129c8789b587baceadb5bbc8c27 Mon Sep 17 00:00:00 2001 From: sunfkny <30853461+sunfkny@users.noreply.github.com> Date: Sat, 2 Mar 2024 20:05:28 +0800 Subject: [PATCH 3/4] =?UTF-8?q?[=E7=BB=84=E4=BB=B6-=E7=BD=91=E5=9D=80?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E6=B8=85=E7=90=86]=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E9=87=8D=E6=96=B0=E6=89=93=E5=BC=80=E5=85=B3=E9=97=AD=E7=9A=84?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E9=A1=B5=E6=97=B6=E8=B7=B3=E8=BD=AC=E8=87=B3?= =?UTF-8?q?=20https://search.bilibili.com/undefined?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/the1812/Bilibili-Evolved/issues/4656 --- registry/lib/components/utils/url-params-clean/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/registry/lib/components/utils/url-params-clean/index.ts b/registry/lib/components/utils/url-params-clean/index.ts index be4c69bc2..50d6d6586 100644 --- a/registry/lib/components/utils/url-params-clean/index.ts +++ b/registry/lib/components/utils/url-params-clean/index.ts @@ -141,6 +141,9 @@ const entry = async () => { url: string, ...restArgs: unknown[] ) { + if (url === undefined || url === null) { + return original.call(this, data, unused, url, ...restArgs) + } const resolvedUrl = (() => { try { return new URL(url, location.origin + location.pathname).toString() From a057b8a67be3fbf8a5fada042f04162cf8fb4800 Mon Sep 17 00:00:00 2001 From: LY <51789698+Young-Lord@users.noreply.github.com> Date: Sat, 2 Mar 2024 14:20:23 +0000 Subject: [PATCH 4/4] Add description on keeping download filename in IDM --- registry/lib/plugins/video/download/idm-output/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/registry/lib/plugins/video/download/idm-output/index.ts b/registry/lib/plugins/video/download/idm-output/index.ts index 8f1f553b7..b411e5f36 100644 --- a/registry/lib/plugins/video/download/idm-output/index.ts +++ b/registry/lib/plugins/video/download/idm-output/index.ts @@ -7,7 +7,8 @@ import { DownloadVideoOutput } from '../../../../components/video/download/types export const plugin: PluginMetadata = { name: 'downloadVideo.outputs.idm', displayName: '下载视频 - IDM 输出支持', - description: '为下载视频增加 IDM 输出支持.', + description: + '为下载视频增加 IDM 输出支持,建议配合 [ef2.exe](https://github.com/MotooriKashin/ef2) 以简化操作、保留文件名.', setup: ({ addData }) => { addData('downloadVideo.outputs', (outputs: DownloadVideoOutput[]) => { outputs.push({