Skip to content

fix(qq): retry transient search failures and use login state - #145

Open
longlxx88-gif wants to merge 5 commits into
59799517:3.0from
longlxx88-gif:fix/qq-search-transient-failure
Open

fix(qq): retry transient search failures and use login state#145
longlxx88-gif wants to merge 5 commits into
59799517:3.0from
longlxx88-gif:fix/qq-search-transient-failure

Conversation

@longlxx88-gif

Copy link
Copy Markdown

Problem

QQ music search can return HTTP 200 while the nested response contains req.code=2001 and an empty result set. SqMusic currently treats that as a valid empty search result.

Changes

  • Include the stored QQ login state in the search request.
  • Retry transient QQ search failures up to three times with a short backoff.
  • Validate the nested response before parsing results and return an explicit error after retries.
  • Correct the num_per_page request field.

This addresses the behavior reported in issue #128.

Validation: git diff --check passed. Maven compilation could not run in the submission environment because no JDK/JAVA_HOME is installed.

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.

2 participants