Requirements: Git, Cargo and the Rust Compiler
bash
cargo install youtube-tui
~/.cache/youtube-tui
, it is cleared when you quit the program~/.local/share/youtube-tui
~/.config/youtube-tui
The config files are located in ~/.config/youtube-tui
, run the program once to create the config files.
main.yml
```yaml
# The program's main config file
ytdl: # Donwload location for your downloaded videos videopath: ~/Downloads/%(title)s.%(ext)s audiopath: ~/Downloads/%(title)s.%(ext)s maxwatch_history: 50 # Maximum length of watch history ```
commands.yml
```yaml
# Command arguments to use when launching applications
videoplayer: command: mpv openinconsole: false args: - "--no-terminal" - "{url}" audioplayer: command: mpv openinconsole: true args: - "--no-video" - "{url}" imageviewer: command: mpv openinconsole: false args: - "{url}" - "--no-terminal" videodownloader: command: yt-dlp openinconsole: true args: - "{url}" - "-o" - "{videosavelocation}" audiodownloader: command: yt-dlp openinconsole: true args: - "{url}" - "-o" - "{audiosavelocation}" - "-x" terminal: command: konsole openin_console: false args: - "-e" - "{command}"