Skip to content

feat: configure Netease and QQ Music quality defaults per provider - #27

Merged
yichen11818 merged 10 commits into
yichen11818:mainfrom
nitonitori:feat/netease-chat-quality
Nov 13, 2026
Merged

yichen11818 merged 10 commits into
yichen11818:mainfrom
nitonitori:feat/netease-chat-quality

Conversation

@nitonitori

@nitonitori nitonitori commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Problem and behavior

Netease Web, chat and history requests currently choose quality differently, while QQ Web/history hardcode 320. Add separate Netease Music and QQ Music settings sections with persisted server defaults and independent browser overrides.

  • Netease supports its existing auto through jymaster values, default auto. QQ exposes only the implemented m4a / 128 / 320 values, default 320. These are requested qualities, not guarantees of actual format, full playback or account entitlement.
  • Explicit valid request > matching provider server default. Omitted/null means follow server; explicit Netease auto still means automatic highest with the existing bounded risk fallback. Unsupported or mismatched provider fields are rejected.
  • Resolve centrally when enqueueing from Web, existing Netease chat and playlists, history and external API. History replay is a new enqueue and supports explicit level/quality query overrides. QQ chat and QQ playlist support are outside this change.
  • Queue metadata pins the requested quality across URL refresh/repeat/retry, including opaque QQ URLs. Existing Netease markers and legacy QQ filename quality inference remain compatible. Updating defaults does not interrupt playback or rewrite queued tracks.
  • The browser offers Follow server, uses separate provider storage keys, preserves valid old Netease selections including explicit auto, and omits quality fields when following. Safe server defaults/options are available in /config/public and shown in the player preferences.

Closes #25.

Validation

  • Python 3.11 full backend suite: 130 tests, passed (2 skipped). Added omitted/null versus explicit auto, provider isolation, invalid requests, config persistence/public values, Web/external/chat/playlist ingress, history and existing-queue refresh coverage.

  • Node 22: npm ci, npm run typecheck, npm test -- --maxWorkers=1 (12 tests), npm run build, npm run build:demo passed.

  • Headless Chromium with fixture APIs: inspected both settings sections, opened player preferences, verified effective defaults and independent persisted browser choices. Screenshots below.

  • Standards and specification reviews completed without important findings. No production deployment or account-entitlement/live audio validation in this PR.

  • Combined integration of feat: configure bounded playback recovery and cooldown in the console #26 and feat: configure Netease and QQ Music quality defaults per provider #27 merged without conflicts locally: 191 backend tests passed (2 skipped); Web typecheck, 15 Vitest tests, production build and demo build passed. The integration branch was used only for local validation.

Screenshots

Netease server default
QQ Music server default
Independent browser preferences

API changes and migration semantics are documented in docs/API.md and docs/MUSIC_QUALITY.md.

@nitonitori nitonitori closed this Nov 12, 2026
@yichen11818

Copy link
Copy Markdown
Owner

怎么关掉了

@yichen11818

Copy link
Copy Markdown
Owner

我看你一直开的草稿 就没审

@nitonitori

Copy link
Copy Markdown
Contributor Author

怎么关掉了

只处理了网易云没处理 QQ 音乐,AI 给关了😇,我重新整理下

@nitonitori nitonitori changed the title feat: configure default quality for TeamSpeak chat requests feat: configure Netease and QQ Music quality defaults per provider Nov 13, 2026
@nitonitori nitonitori reopened this Nov 13, 2026
@nitonitori
nitonitori marked this pull request as ready for review November 13, 2026 11:49

@yichen11818 yichen11818 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

感谢你的贡献,也感谢把网易云和 QQ 音乐的配置、浏览器偏好、兼容处理及文档一起补齐。

我审查了当前提交 9b4a963847a3d43ed198e5cbafde8273e881fa8c,重点核对了:省略音质与显式 auto 的区别、两个平台独立校验、已有队列音质的保留、历史重播作为新入队,以及 Web / 聊天 / 外部 API 的默认值解析。当前未发现需要阻止合并的代码问题。

验证结果:

  • 本地后端 130 项测试,跳过 1 项,其余通过。
  • 与 #26 本地组合合并无冲突;组合后的后端 185 项测试,跳过 1 项,其余通过。
  • 组合后的前端类型检查及 15 项前端测试通过。
  • 当前提交的 GitHub CI 全部通过(发布打包任务按条件跳过)。

这次对“请求音质不等于实际音质或账号权益”的说明很清楚,旧浏览器显式 auto 的兼容处理也比较周全。本次验证使用隔离数据库及模拟上游响应,未进行真实账号权益或 TeamSpeak 音频验证。#26 的两个独立问题已在对应 PR 留下意见,不影响这里对 #27 的审查结论。

@yichen11818
yichen11818 merged commit bc6fcfd into yichen11818:main Nov 13, 2026
7 checks passed
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.

Configure server playback quality separately for Netease and QQ Music

2 participants