feat: 批量下载时尽快加入下载队列 - #181
Open
kyv001 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.
改动类型
是否包含破坏性变更
改动说明
以往的批量下载是逐个解析、加入队列、下载,一首曲目下载完毕再解析下一个,导致队列中始终只显示正在下载的一个曲目而不是显示所有排队曲目。现在改为逐个解析、加入队列,不等待上一首下载完毕,从而在队列中正确显示排队曲目。另外通过500ms的延迟避免高频率访问线上平台API导致封号。
关联
#95
测试情况
下载歌单后可以看到底部弹出实时进度提醒,在下载管理页面可以看到曲目被一首首加入并排队下载。
截图 / 录屏
2026-08-19.22-12-00.mp4
自查清单
pnpm format,并确认pnpm typecheck、pnpm lint通过pnpm build:native验证;未手写native/*/index.d.ts(未涉及原生模块)dev分支提交