Skip to content

feat(weibo,youtube): add Weibo commands and YouTube channel/comments#418

Merged
jackwener merged 1 commit intomainfrom
feat/weibo-youtube-commands
Mar 25, 2026
Merged

feat(weibo,youtube): add Weibo commands and YouTube channel/comments#418
jackwener merged 1 commit intomainfrom
feat/weibo-youtube-commands

Conversation

@jackwener
Copy link
Copy Markdown
Owner

Summary

  • Weibo: add feed, me, user, post, comments commands with cookie-based auth via internal API
    • utils.ts: shared getSelfUid() with proper AuthRequiredError
    • comments.ts: rank column included in output
    • post.ts: handles both isLongText and is_long_text API field names
  • YouTube: add channel (info + recent videos) and comments via InnerTube API
    • channel.ts: subscriber count fallback for old c4TabbedHeaderRenderer format
  • Remove internal source references from file headers across all sites

Test plan

  • opencli weibo hot — verify hot search works
  • opencli weibo feed — verify feed with login
  • opencli weibo post <id> — verify single post fetch with long text
  • opencli weibo comments <id> — verify rank column appears
  • opencli youtube channel @handle — verify channel info
  • opencli youtube comments <videoId> — verify comment listing
  • npx tsc --noEmit passes

Weibo: add feed, me, user, post, comments commands with cookie-based
auth and proper AuthRequiredError handling.

YouTube: add channel info and video comments via InnerTube API.

Also remove internal source references from file headers.
@jackwener jackwener merged commit 3e0c18f into main Mar 25, 2026
17 of 18 checks passed
@jackwener jackwener deleted the feat/weibo-youtube-commands branch March 25, 2026 07:37
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