Skip to content

v0.1.1

Latest

Choose a tag to compare

@github-actions github-actions released this 13 Jun 16:11
fd7bf46

This is a bug-fix release. A sweep of every subcommand against live pages turned up a handful of fields that came back blank or wrong on YouTube's current layout. Each one was data that had moved to a new place in the page, and each is now read from where it lives today.

Fixes

  • channel --videos showed the channel name in the views column. The continuation feed sends a bare 101K with no "views" word, which the parser mistook for a name. It now reads the view count and the upload time correctly.
  • channel printed blank subscriber and video counts. Those numbers moved into the page header, so the old lookup found nothing. 4.51M subscribers and 422 videos are back.
  • playlist listed no videos and reported a count of zero. Modern playlist pages render their items in a new shape and keep the owner and count in the header. Playlists list their videos again, with a count and a channel.
  • video printed a blank duration. The watch page dropped the field ytb was reading, so the duration is now derived from the length in seconds.
  • channel --shorts returned nothing at all. The Shorts tab uses its own item format, which is now parsed for the id, title, and view count.
  • formats ignored -n. It now stops at the row limit you ask for.

Install

Homebrew:

brew install tamnd/tap/ytb

Go:

go install github.com/tamnd/ytb-cli/cmd/ytb@v0.1.1

Docker:

docker run --rm ghcr.io/tamnd/ytb video dQw4w9WgXcQ -o json

Or grab a prebuilt archive (Linux, macOS, Windows on amd64 and arm64) or a Linux package (deb, rpm, apk) from the assets below. Each release ships checksums.txt signed with keyless cosign, plus SBOMs.

Documentation

Full docs, guides, and the CLI reference live at https://ytb-cli.tamnd.com.