Skip to content

fix(douban): read search results from page data#1

Closed
warkcod wants to merge 2 commits intomainfrom
fix/douban-search-data-fallback
Closed

fix(douban): read search results from page data#1
warkcod wants to merge 2 commits intomainfrom
fix/douban-search-data-fallback

Conversation

@warkcod
Copy link
Copy Markdown
Owner

@warkcod warkcod commented Apr 29, 2026

Summary

  • fall back to window.DATA.items when Douban search result DOM is not rendered
  • restore OPENCLI_CDP_ENDPOINT as an explicit CDP routing override for browser-backed commands
  • add adapter/runtime tests for the fallback and CDP routing

Verification

  • npm run test:adapter -- clis/douban/utils.test.js
  • npx vitest run --project unit src/runtime.test.ts
  • npm run build
  • OPENCLI_CDP_ENDPOINT=http://127.0.0.1:9222 node dist/src/main.js douban search --type book "大棋局" --limit 3 -f json

@warkcod
Copy link
Copy Markdown
Owner Author

warkcod commented Apr 29, 2026

Closed because this fix should target upstream jackwener/OpenCLI instead. Upstream PR: jackwener#1213

@warkcod warkcod closed this Apr 29, 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.

1 participant