Skip to content

Configure server playback quality separately for Netease and QQ Music #25

Closed

Description

@nitonitori

Problem

Playback quality currently depends on entry point: Netease Web requests send a browser preference, chat requests default to auto, and QQ Web/history requests hardcode 320. An operator cannot set one coherent default per provider. A shared quality enum would also misrepresent the providers' different capabilities.

Proposed console layout

Under music configuration, provide separate Netease Music and QQ Music sections, each with its own default requested quality and provider-specific help. These are provider defaults shared by the supported playback entry points, not a chat-only setting.

Provider Values supported by the current bot adapter Compatibility default
Netease auto, standard, higher, exhigh, lossless, hires, jyeffect, sky, dolby, jymaster auto
QQ Music m4a, 128, 320 320

QQ currently maps these to C400/M500/M800 files. Do not expose FLAC, Hi-Res or branded enhancement tiers without implementing and testing them separately. Do not label M4A with an unverified fixed bitrate. Account entitlement, availability and preview behavior still apply: the field describes requested/default quality, not a guarantee of actual format or full-track playback.

Selection and persistence contract

  1. An explicit valid quality in a new playback/enqueue request overrides that provider's server default.
  2. An omitted/null quality means follow server, resolved centrally in the backend using the request's provider.
  3. Netease auto retains its existing meaning: automatic highest, including existing bounded risk fallback. It must not be reused to mean follow server.
  4. Persist each selected quality in queue metadata so URL refresh, repeat and retries keep the original request. Changing defaults affects new enqueues only; it does not rewrite queued tracks or interrupt current playback. Preserve compatibility with existing Netease queue markers and QQ quality inferred from legacy URL prefixes.
  5. Define history replay as a new enqueue: omitted quality follows the current provider default; an explicit request may override it. Do not accidentally keep QQ history hardcoded to 320.

Entry points and Web migration

  • Cover Web search/enqueue for both providers, Netease playlist import, existing Netease chat play/add/playlist commands, history replay and supported external enqueue APIs. QQ chat and QQ playlist import are not currently implemented and are not added by this issue.
  • Web controls offer a distinct Follow server choice, with separate provider-specific overrides/storage keys. Missing preferences follow server; preserve valid existing browser selections as explicit overrides, including an existing Netease auto selection.
  • Follow-server requests omit the quality field rather than sending auto or a hardcoded 320. Show the effective server default without exposing credentials.
  • Validate independently per provider; reject unsupported/cross-provider values rather than silently converting unknown QQ values to 320. Existing explicit requests remain valid.
  • Persist through existing admin runtime settings, with safe provider defaults available to playback UI/API consumers. Saving an omitted quality must not erase a deliberate per-request choice.

Acceptance criteria

  • Tests cover omitted versus explicit auto, provider isolation, strict validation, persistence/restart, old browser preferences and follow-server requests.
  • Each supported ingress uses the same backend resolver. Test history separately from existing-queue refresh/repeat.
  • Updating defaults does not change the current track or existing queue metadata. Quality fallback/preview behavior is reported accurately and does not bypass entitlement.
  • The settings UI presents two provider sections and labels requested quality clearly.

Source audit is based on upstream ea14cbbe1356a88128d4dbc25a894e367e92ae1d (backend/qqmusic.py, backend/main.py, web/src/views/SearchView.vue, web/src/utils/neteaseQuality.ts). Reopened PR #27 implements these provider-specific defaults and replaces the previous chat-only interface.

Activity

  1. changed the title [-]Allow configuring a server default quality for TeamSpeak chat requests[/-] [+]Configure server playback quality separately for Netease and QQ Music[/+] on Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions