#youtube #client #command-line #web-api #api-key #video-player #login

app rs-youtube

Command line youtube/twitch client that uses the web api so no login or API key is needed

8 releases

0.2.2 Apr 30, 2021
0.2.1 Apr 25, 2021
0.1.4 Apr 24, 2021

#2598 in Command line utilities

MIT/Apache

59KB
1.5K SLoC

rs-youtube

Command line YouTube/Twitch client that uses the web api so no login or API key is needed.

  • Requires mpv and youtube-dl, or another video player capable of loading videos from YouTube/Twitch links (e.g. celluloid, even a web browser would work)

Installation

  1. Make sure your video player is installed and is accessible by typing its name via command line (Typing mpv should print a help screen, for example)

  2. Install Rust (using rustup)

  3. Install using cargo

cargo install rs-youtube

Compilation

  1. Make sure your video player is installed and is accessible by typing its name via command line (Typing mpv should print a help screen, for example)

  2. Install Rust (using rustup)

  3. Clone and run the project using cargo

git clone https://github.com/j0lol/rs-youtube
cd rs-youtube
cargo install --path .
rs-youtube(.exe)

Configuration

This program will create a config file the first time it reads config (checking subscriptions or checking video player) in one of these directories:

  • Linux: /home/USER/.config/rs-youtube/config.toml
  • Windows: C:\Users\USER\AppData\Roaming\j0lol\rs-youtube\config\config.toml
  • macOS: /Users/USER/Library/Application Support/com.j0lol.rs-youtube/config.toml

If you would like to edit the config, refer to the config.toml.default file.

The config file defaults to loading mpv, and will have 0 subscriptions. You can subscribe to a channel by searching for its channel page, then picking the "sub" option.

Screenshots

Main menu

image

image

Youtube channel

image

Youtube subscription feed

image

image

Twitch channel view

image

Twitch follow feed

image

Testing

  • rs-youtube has been thoroughly tested on linux, and somewhat tested on Windows and macOS

Dependencies

~3–6MB
~129K SLoC