Conversation
abkkkbb
force-pushed
the
fix/kg-playlist-truncation
branch
from
September 7, 2026 14:24
3218721 to
5085664
Compare
This branch has not been deployed
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.
改动类型
是否包含破坏性变更
改动说明
修复 #247。
问题:酷狗歌单/专辑歌曲数超过 300 时,客户端只请求 page=1&pagesize=300 单页就收工,其余歌曲静默丢失。而酷狗 special/song、album/song、/v1/album_audio/lite 接口均支持分页(实测验证)。
修复:新增 electron/main/apis/kugou/core/pagination.ts 提供 fetchAllPages——先取第一页拿 total,再并发补拉剩余页拼接。三处调用点(歌单、专辑 mobilecdn 通道、专辑网关通道)统一改走该函数。
设计要点:
关联 Issue
Closes #247
测试情况
自查清单
pnpm format,并确认pnpm typecheck、pnpm lint通过pnpm build:native验证;未手写native/*/index.d.tsdev分支提交