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', 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() 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({ diff --git a/src/components/video/player-agent/base.ts b/src/components/video/player-agent/base.ts index 6283bb762..0046002b8 100644 --- a/src/components/video/player-agent/base.ts +++ b/src/components/video/player-agent/base.ts @@ -95,11 +95,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