Skip to content

fix: 添加音乐 URL 有效性预检功能 (Closes #303) - #305

Open
eivgogo wants to merge 2 commits into
XCQ0607:devfrom
eivgogo:me
Open

fix: 添加音乐 URL 有效性预检功能 (Closes #303)#305
eivgogo wants to merge 2 commits into
XCQ0607:devfrom
eivgogo:me

Conversation

@eivgogo

@eivgogo eivgogo commented Jul 30, 2026

Copy link
Copy Markdown

Fixes #303
从第三方音源获取URL,应该检查是否为有效 URL,可以尝试多个第三方音源获取新的有效 URL;

通过测试

日志记录流程如下

[FileCache] Lyric cached saved to: /server/cache/huwei/Love Story - Taylor Swift - 320k - Fearless (Platinum Edition).lrc
[MusicUrl] Using custom source for: tx (ReqId: pbks934ndxms7b5clt, User: huwei)
[UserApi] 尝试 全豆要[聚合音源] 获取 tx 音乐链接 (Owner: open)
[UserApi] 验证 全豆要[聚合音源] 返回的 URL 有效性...
[UserApi] 全豆要[聚合音源] 失败: 音源日志:URL 有效性预检失败: HTTP 404
[UserApi] 尝试 Huibq_lxmusic源 获取 tx 音乐链接 (Owner: open)
[UserApi] 尝试 念心音源 获取 tx 音乐链接 (Owner: open)
exhigh 0013TCdl37SVzP
[UserApi-Huibq_lxmusic源] callRequest Error: Client network socket disconnected before secure TLS connection was established
[UserApi] Huibq_lxmusic源 失败: 音源日志:Client network socket disconnected before secure TLS connection was established
localPromise {} tx
exhigh 0013TCdl37SVzP
[UserApi] 验证 念心音源 返回的 URL 有效性...
[UserApi] ✓ 念心音源 URL 验证通过 (Owner: open)
[DownloadProxy] Fetching: https://car-er.kuwo.cn/18cb38f7d0891df209469be48efb584d/6a6b1879/resource/30106/trackmedia/M800000uAeYp4IWyKZ.mp3 

@coderabbitai

coderabbitai Bot commented Jul 30, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 2cbe4690-03d6-4c8c-bde4-29c00fad4c5a

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@eivgogo eivgogo changed the title feat(music): 添加音乐 URL 有效性预检功能,确保返回链接可播放 fix(#303): 添加音乐 URL 有效性预检功能,确保返回链接可播放 Jul 30, 2026
@eivgogo eivgogo changed the title fix(#303): 添加音乐 URL 有效性预检功能,确保返回链接可播放 fix: 添加音乐 URL 有效性预检功能 (Closes #303) Jul 30, 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.

1 participant