Expand description
YouTube Music’s plug-in to the generic service lifecycle.
YouTube Music’s runtime client talks to the InnerTube backend
under music.youtube.com/youtubei/v1. Authentication is OAuth
2.0 device flow (RFC 8628) against Google’s TVHTML5 client —
there is no per-operator OAuth client to register. The lifecycle
collects a refresh token by walking the user through the device
flow once; subsequent CLI runs mint access tokens from the
refresh token without further interaction. The generic plumbing
(flag parsing, path resolution, JSON envelopes, human banners,
keychain I/O sequencing) lives in src/cli/lifecycle.rs and is
shared with every other service.
See docs/services.md#adding-a-new-service for the full recipe.
Structs§
- Create
Args - Ymusic
Lifecycle - Ymusic
Secrets - YouTube Music’s credential shape. The device-flow refresh token
is the only per-user secret; the OAuth client_id / client_secret
are TVHTML5 constants shared across every install (see
zad::service::ymusic::oauth_device) and therefore not stored.