Skip to content

fix(bilibili): distinguish login-gated subtitles from empty results#645

Merged
jackwener merged 2 commits intojackwener:mainfrom
warkcod:main
Mar 31, 2026
Merged

fix(bilibili): distinguish login-gated subtitles from empty results#645
jackwener merged 2 commits intojackwener:mainfrom
warkcod:main

Conversation

@warkcod
Copy link
Copy Markdown
Contributor

@warkcod warkcod commented Mar 31, 2026

Description

Fix bilibili subtitle so login-gated subtitle responses are reported as auth-required instead of misleading empty results.

Related issue:

Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • 🌐 New site adapter
  • 📝 Documentation
  • ◆ Refactor
  • 🔧 CI / build / tooling

Checklist

  • I ran the checks relevant to this PR
  • I updated tests or docs if needed
  • I included output or screenshots when useful

Documentation

(if adding/modifying an adapter)

  • Added doc page under docs/adapters/ (if new adapter)
  • Updated docs/adapters/index.md table (if new adapter)
  • [ ]
    Updated sidebar in docs/.vitepress/config.mts (if new adapter)
  • Updated README.md / README.zh-CN.md when command discoverability changed
  • Used
    positional args for the command's primary subject unless a named flag is clearly better\n- [x] Normalized expected adapter failures to CliError subclasses instead of
    raw Error\n\n## Screenshots / Output\n- npm test\n- npx vitest run --project adapter src/clis/bilibili/subtitle.test.ts src/clis/bilibili/comments.test.ts src/clis/ bilibili/dynamic.test.ts\n- npm run typecheck

warkcod and others added 2 commits April 1, 2026 00:55
…oThrow

Awaiting the same rejected promise twice is unreliable. Combine the
AuthRequiredError type check and message regex into one toSatisfy call.
@jackwener jackwener merged commit 0105752 into jackwener:main Mar 31, 2026
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