README.md

2a2a2fa4a5238515d8e2b21c975824c74f72606c
youtube-tui/README.md rendered · source · history · blame · raw

101 lines · 2378 bytes

  1## Warning: This program is made for Linux machines (And maybe MacOS?)
  2
  3## Changes made in this commit
  4* Watch history page
  5* Config files in `~/.config/youtube-tui`
  6
  7## Installation
  8Requirements: Git, Cargo and the Rust Compiler
  9
 10```bash
 11git clone https://github.com/Siriusmart/youtube-tui && cd youtube-tui && cargo build
 12```
 13
 14## Features
 15* View the Trending and Popular tab of YouTube
 16* View your Watch history
 17* Download videos and audio
 18* Watch videos and audio
 19
 20## Movement
 21* Use the arrow keys to move around the screen
 22* Press enter to select an item
 23* When item is selected all your keys will be passed into it
 24* Press escape to exit the item
 25* Press q to quit the program
 26
 27## Layout
 28* Each divided area is one item
 29* Red shows the item your currently on
 30* Blue shows the selected item
 31* Yellow shows an item in a special state
 32
 33## Storage
 34* Cache is stored in `~/.cache/youtube-tui`, it is cleared when you quit the program
 35* Storage is stored in `~/.local/share/youtube-tui`
 36* Config files are stored in `~/.config/youtube-tui`
 37
 38## Config files
 39The config files are located in `~/.config/youtube-tui`, run the program once to create the config files.
 40
 41> ### `main.yml`
 42> ```yaml
 43> # The program's main config file
 44> ---
 45> yt_dl: # Donwload location for your downloaded videos
 46>   video_path: ~/Downloads/%(title)s.%(ext)s
 47>   audio_path: ~/Downloads/%(title)s.%(ext)s
 48> max_watch_history: 50 # Maximum length of watch history
 49> ```
 50
 51> ### `commands.yml`
 52> ```yaml
 53> # Command arguments to use when launching applications
 54> ---
 55> video_player:
 56>   command: mpv
 57>   open_in_console: false
 58>   args:
 59>     - "--no-terminal"
 60>     - "{url}"
 61> audio_player:
 62>   command: mpv
 63>   open_in_console: true
 64>   args:
 65>     - "--no-video"
 66>     - "{url}"
 67> image_viewer:
 68>   command: mpv
 69>   open_in_console: false
 70>   args:
 71>     - "{url}"
 72>     - "--no-terminal"
 73> video_downloader:
 74>   command: yt-dlp
 75>   open_in_console: true
 76>   args:
 77>     - "{url}"
 78>     - "-o"
 79>     - "{video_save_location}"
 80> audio_downloader:
 81>   command: yt-dlp
 82>   open_in_console: true
 83>   args:
 84>     - "{url}"
 85>     - "-o"
 86>     - "{audio_save_location}"
 87>     - "-x"
 88> terminal:
 89>   command: konsole
 90>   open_in_console: false
 91>   args:
 92>     - "-e"
 93>     - "{command}"
 94> 
 95
 96## To Do
 97* Make the search bar functional
 98* View channels
 99
100## Bugs
101* If there is a bug please open a GitHub issue thx :)