feat: 支持优先使用已启用的音源插件 - #244
Open
kid141252010 wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动类型
是否包含破坏性变更
改动说明
背景与动机
在安装了音源插件(如特定平台解析/解密插件)时,部分歌曲官方在线接口可能由于 VIP、地区版权等原因无法播放,或用户更期望直接使用第三方音源插件获取的音源直链。原逻辑中插件仅在官方接口解析失败后作为兜底使用,无法主动优先使用插件。
主要变更
preferPluginSource)」配置项,默认关闭(保持既有行为兼容)。zh-CN.json/en-US.json)。resolveOnlineUrl,拆分出resolveOfficialOnlineUrl独立解析官方接口。preferPluginSource开启时,优先调度resolveByPlugin解析直链;若插件未命中或仅返回试听,则回退至官方接口。preferPluginSource偏好,开启时优先尝试插件下载源。preferPluginSource纳入下一曲预加载的上下文构建键(buildContextKey)及响应式监听器列表,确保用户切换设置时预加载缓存正确失效和刷新。测试情况
pnpm typecheck(包含tsc和vue-tsc无任何报错)。prettier --check,所有变更文件格式均符合规范。自查清单
pnpm format,并确认pnpm typecheck、pnpm lint通过pnpm build:native验证;未手写native/*/index.d.ts