Skip to content

feat: 插件歌词优先偏好配置 & 音源插件图形化配置 - #203

Merged
imsyy merged 4 commits into
SPlayer-Dev:devfrom
kid141252010:feat/prefer-plugin-lyric
Aug 28, 2026
Merged

feat: 插件歌词优先偏好配置 & 音源插件图形化配置#203
imsyy merged 4 commits into
SPlayer-Dev:devfrom
kid141252010:feat/prefer-plugin-lyric

Conversation

@kid141252010

Copy link
Copy Markdown
Contributor

内容由 Gemini 3.6 Flash 生成

改动类型

  • 新功能(feat)
  • 缺陷修复(fix)
  • 重构 / 优化(不改变对外行为)
  • 文档(docs)
  • 其他(请在「改动说明」中注明)

是否包含破坏性变更

  • 是(请在「改动说明」中详细描述)

改动说明

  1. 支持音源类插件图形化配置(Fix):修复 PluginList.vue 中配置弹窗原本限定仅在 controlPlugins 中检索 Schema 的问题,使其扩展为在全量已安装插件中检索,确保包含音源类在内的所有插件均可渲染图形化配置项。
  2. 新增「优先使用插件歌词」偏好项(Feat):在系统设置「设置 → 歌词」中新增 preferPluginLyric 开关,打通 loader / resolve / download 歌词服务层,开启时插件歌词优先于内置在线平台执行,关闭时作为兜底。

测试情况

  1. 在 Windows 11 环境运行 pnpm build:win 打包完整安装包并验证。
  2. 验证插件列表与配置界面:音源类插件点【配置】后能正常弹窗并渲染 text / select 等类型控件。
  3. 验证歌词偏好:在设置中开启「优先使用插件歌词」后切歌,能够正确触发前置插件歌词检索流程。

截图 / 录屏

image

自查清单

  • 本 PR 只包含一个主要功能 / 修复,没有夹带无关改动
  • 已在本地完整测试通过;AI 生成的代码同样自行测试并审阅过,未做未经验证的提交
  • 已运行 pnpm format,并确认 pnpm typecheckpnpm lint 通过
  • 改动涉及原生模块时已 pnpm build:native 验证;未手写 native/*/index.d.ts
  • 已向 dev 分支提交

@kid141252010 kid141252010 changed the title feat: 支持插件歌词优先偏好配置及音源插件图形化配置 feat: 插件歌词优先偏好配置 & 音源插件图形化配置 Aug 25, 2026
@kid141252010
kid141252010 force-pushed the feat/prefer-plugin-lyric branch 2 times, most recently from 7bfe0fe to f325984 Compare August 25, 2026 09:48
Comment thread src/services/download/lyric.ts Outdated
Comment thread src/services/lyric/resolve.ts Outdated
* @param track - 歌曲信息
* @returns 命中的插件歌词,未开启或未命中返回 null
*/
export const resolvePreferredPluginLyric = async (track: Track): Promise<ResolvedLyric | null> => {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

按照新方案,该函数需要删除

Comment thread src/services/lyric/loader.ts Outdated
* @param track - 歌曲信息
* @returns 是否已提交有效歌词
*/
const tryPreferredPlugin = async (token: number, track: Track): Promise<boolean> => {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

按照新方案,该函数需要删除;在现有的 loader.ts 中,若插件优选开启,则改为:在线平台和插件同时请求,先到先 commit

@imsyy
imsyy merged commit f4ee265 into SPlayer-Dev:dev Aug 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants