Files
oc/clis/youtube.com.json
only-cli 01b607ac81 support youtube watch pages and transcripts
Watch pages need client JS to become interactive, but the title,
description, view count, and caption tracks already ship inline in
the initial HTML as ytInitialPlayerResponse, so this reads that
directly instead of waiting on the v0.3 headless fallback. Each
caption track becomes a numbered link, and oc do on it fetches the
timedtext transcript, collapsed into one block so it pages through
oc next/oc read like any other long document instead of costing one
block per caption line.

Adds youtubeToHTML and transcriptToHTML alongside feedToHTML in the
distiller, a youtube.com.json shortcut, and offline tests against a
fixture watch page.

Fixes #6
2026-08-19 13:27:52 -04:00

8 lines
211 B
JSON

{
"domain": "youtube.com",
"commands": {
"video": { "open": "https://www.youtube.com/watch?v={id}", "args": ["id"] },
"channel": { "open": "https://www.youtube.com/@{name}", "args": ["name"] }
}
}