Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Playlists

rstube supports one or more configured YouTube playlists. Each is stored under a short name you choose.

Commands

# add
rstube playlists add <name> <url-or-id>

# remove
rstube playlists remove <name>

# show URL
rstube playlists show <name>

# list all
rstube playlists list

# refetch from YouTube (updates local cache)
rstube playlists fetch           # all configured playlists
rstube playlists fetch <name>    # just one

A “url-or-id” can be any of:

  • A full playlist URL: https://www.youtube.com/playlist?list=PLABCDEF
  • A URL with list=... and other junk: also fine
  • A bare playlist id: PLABCDEF → normalized into a canonical URL

No duplicates

playlists add rejects a URL that’s already configured under another name, even if you pass it in a different form (bare id vs full URL — both normalize to the same canonical URL). The identity is the canonical URL, not the name you choose.

Ordering

Playlists are stored as an ordered list. That order determines:

  • The order rstube playlists list prints them.
  • The order items appear in merged views (play new, play any, show new) — items from the first playlist come first, then the second, and so on, with duplicates (same video id across playlists) deduped keeping the first occurrence. Individually-configured videos (see Videos) are appended after all playlists.

Since play new and friends merge everything into one picker, order only affects presentation, not what you can reach.

Visibility

For rstube to read a playlist without authentication, it must be public or unlisted on YouTube. Private playlists are not accessible. Unlisted is usually what you want: hidden from search and your channel, but still fetchable by anyone with the link.

To change: YouTube Studio → Content → Playlists → pencil icon → Visibility.

Storage

The configured list lives in a TOML config file:

  • $RSTUBE_CONFIG_DIR/config.toml if set
  • else $XDG_CONFIG_HOME/rstube/config.toml
  • else ~/.config/rstube/config.toml

Format:

[[playlists]]
name = "chess"
url = "https://www.youtube.com/playlist?list=PLABCDEF"

[[playlists]]
name = "tutorials"
url = "https://www.youtube.com/playlist?list=PLXYZ123"

You can hand-edit this file; rstube will re-read it on every invocation.