Skip to content

feat(route): add zuna download#22381

Open
JaggerH wants to merge 2 commits into
DIYgod:masterfrom
JaggerH:feature-zuna
Open

feat(route): add zuna download#22381
JaggerH wants to merge 2 commits into
DIYgod:masterfrom
JaggerH:feature-zuna

Conversation

@JaggerH

@JaggerH JaggerH commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Involved Issue / 该 PR 相关 Issue

Close #

Example for the Proposed Route(s) / 路由地址示例

/zuna/download/1824045033/lossless

New RSS Route Checklist / 新 RSS 路由检查表

  • New Route / 新的路由
  • Anti-bot or rate limit / 反爬/频率限制
    • If yes, do your code reflect this sign? / 如果有, 是否有对应的措施?
  • Date and time / 日期和时间
    • Parsed / 可以解析
    • Correct time zone / 时区正确
  • New package added / 添加了新的包
  • Puppeteer

Note / 说明

  • Adds a Zuna download route for NetEase Cloud Music song IDs or URLs.
  • The current Zuna frontend protocol requires /api/key, X-Key-Token, /api/ip, and a signed /api/song request.
  • Local verification: pnpm test lib/zuna.test.ts.
  • Live protocol check reached the correct upstream path; Zuna currently returns 获取播放链接失败:上游音乐服务连接失败 because its upstream music service is unavailable.

Comment thread lib/routes/zuna/download.ts Outdated
delete cleaned.ver;

let signString = timestamp + SIGN_DOMAIN;
for (const key of Object.keys(cleaned).toSorted()) {
Comment thread lib/routes/zuna/download.ts Outdated
if (!match) {
return undefined;
}
const value = Number.parseFloat(match[1]);
@github-actions

Copy link
Copy Markdown
Contributor

Auto Route Test failed, please check your PR body format and reopen pull request. Check logs for more details.
自动路由测试失败,请确认 PR 正文部分符合格式规范并重新开启,详情请检查 日志

@github-actions github-actions Bot added the auto: route no found Automated test failed due to route can not be found in PR description body label Jun 29, 2026
@github-actions github-actions Bot closed this Jun 29, 2026
@github-actions github-actions Bot added the auto: DO NOT merge Docker won’t even start label Jun 29, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Auto Review

  • [Rule 3] lib/routes/zuna/download.ts: Radar source contains query matching ?id=:id, which is not allowed per the review rules ("no hash/query matching"). Fix: change source: ['music.163.com/song?id=:id'] to source: ['music.163.com/song'].

@github-actions github-actions Bot reopened this Jun 30, 2026
@github-actions github-actions Bot added auto: not ready to review Users can't get the RSS feed output according to automated testing results and removed auto: DO NOT merge Docker won’t even start auto: route no found Automated test failed due to route can not be found in PR description body labels Jun 30, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Successfully generated as following:

http://localhost:1200/zuna/download/1824045033/lossless - Failed ❌
HTTPError: Response code 503 (Service Unavailable)

Error Message:<br/>FetchError: [GET] &quot;https://music.znnu.com/api/key&quot;: 545 Unknown Status
Route: /zuna/download/:id/:level?
Full Route: /zuna/download/1824045033/lossless
Node Version: v24.18.0
Git Hash: e11ecc10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto: not ready to review Users can't get the RSS feed output according to automated testing results core enhancement route

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants