Skip to content

feat: videos categories command#22

Merged
jdwit merged 2 commits into
mainfrom
feat/videos-categories
Jun 8, 2026
Merged

feat: videos categories command#22
jdwit merged 2 commits into
mainfrom
feat/videos-categories

Conversation

@jdwit

@jdwit jdwit commented Jun 8, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds ytstudio videos categories that lists assignable YouTube video categories for a region (default US), supporting table and json output.
  • Updates the sidecar YAML docs in docs/videos.md to point at the new command instead of a static category-ID table that would drift from the YouTube API.

Test plan

  • uv run pytest (203 → 207 tests, all green)
  • uv run ruff check / ruff format --check clean
  • Smoke: ytstudio videos categories against a real channel returns the assignable list; --region NL switches locale; -o json parses

jdwit added 2 commits June 8, 2026 09:16
Fetches assignable video categories from the YouTube Data API
(videoCategories.list) for a given region (default US). Output as
table or JSON. Referenced from the sidecar docs so users no longer
need a static category-ID table that goes stale.
The previous default of "22" (People & Blogs) was our choice, not a
YouTube-imposed default. Hiding it behind a default made it easy to
upload a batch into the wrong category by accident. UploadSpec now
requires category_id; sidecars without it fail validation upfront.
@jdwit jdwit merged commit 743af74 into main Jun 8, 2026
7 checks passed
@jdwit jdwit mentioned this pull request Jun 8, 2026
2 tasks
@jdwit jdwit deleted the feat/videos-categories branch June 8, 2026 18:57
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