fix: 添加音乐 URL 有效性预检功能 (Closes #303) - #305
Open
eivgogo wants to merge 2 commits into
Open
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
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. Comment |
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.
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