YOUTUBE-DL-REPL

youtube-dl-repl is a frontend for youtube-dl providing an interactive shell mode (REPL).

EXAMPLES

youtube-dl-repl takes command-line arguments of youtube-dl and then, makes a loop:

example-image-1

INSTALLATION ON LINUX

youtube-dl-repl should run smoothly on Windows and macOS, and can be installed by the use of cargo. Yet, it is being developed and primarily tested on Fedora Linux.

youtube-dl-repl (in Rust) requires youtube-dl (in Python) to be installed on the system as a dependency. Note that to make them work together you need to perform a separate installation of youtube-dl e.g., from your Linux distro's repositories.

youtube-dl-repl v1.0.0:

– Was successfully tested on Arch Linux, Fedora Linux 37, openSUSE Tumbleweed, Ubuntu 22.04 and Ubuntu 22.10.

– Failed to run on Mageia 8 due to an old glibc version (required ≥2.34).

METHOD 1 – BY THE USE OF CARGO

[recommended for programmers]

1. Install from crates.io by the use of cargo:

cargo install youtube-dl-repl

By default, the file will be downloaded to .cargo/bin/, a hidden folder in your home directory.

2a. For convenience, you will probably want to copy youtube-dl-repl to /usr/bin/ as in Method 2 (3a, 3b).

2b. Alternatively, add ~/.cargo/bin directory to your PATH variable (can be set up by rustup).

METHOD 2 – LINUX UNIVERSAL BINARIES

1. Download the distro-independent binary of youtube-dl-repl from GitHub.

2. Make the file executable:

sudo chmod +x ./youtube-dl-repl

3a. On most Linux distros, install youtube-dl-repl via copying the binary to /usr/bin/:

sudo cp youtube-dl-repl /usr/bin/

3b. On Fedora Silverblue / Kinoite:

sudo cp youtube-dl-repl /var/usrlocal/bin/

METHOD 3 – DISTRO-SPECIFIC PACKAGES

[recommended for most users]

Distro-specific packages are also available for download for .rpm- and .deb-based Linux distros. Installation instructions:

Fedora Linux / RHEL / openSUSE:

sudo rpm -i youtube-dl-repl-1.0.0-1.x8664.rpm_

Fedora Silverblue / Kinoite:

rpm-ostree install youtube-dl-repl-1.0.0-1.x8664.rpm_

Ubuntu:

sudo dpkg -i youtube-dl-repl1.0.0amd64.deb

METHOD 4 – MANUAL COMPILATION

Download and unpack the youtube-dl-repl source from GitHub. Then, build and install the program:

cargo build --release && sudo cp target/release/youtube-dl-repl /usr/bin/