README.md
146 lines · 3642 bytes
1## Warning:
2* This app is incomplete but is basically usable
3* This app is only for *\*nix* systems
4
5## Changes made in this commit
6* Playlist support
7* Adaptive config files (e.g. auto update config files while preserving the original options)
8
9## Installation
10Requirements: Git, Cargo and the Rust Compiler
11
12Executable size: ~12.5MB
13
14```bash
15# Install from crates.io (might not be as up-to-date as the one on GitHub)
16cargo install youtube-tui
17```
18
19```bash
20# Install from GitHub with cargo install (The binary will be placed in ~/.cargo/bin, and can be called with `youtube-tui`)
21git clone https://github.com/siriusmart/youtube-tui && cd youtube-tui && cargo install --path . && cd .. && rm -rf youtube-tui
22```
23
24## Features
25* View the Trending and Popular tab of YouTube
26* View your Watch history
27* Download videos and audio
28* Watch videos and audio
29* Video and playlist support
30
31## Movement
32* Use the arrow keys to move around the screen
33* Press enter to select an item
34* When item is selected all your keys will be passed into it
35* Press escape to exit the item
36* Press q to quit the program
37
38## Layout
39* Each divided area is one item
40* Red shows the item your currently on
41* Blue shows the selected item
42* Yellow shows an item in a special state
43
44## Storage
45* Cache is stored in `~/.cache/youtube-tui`, it is cleared when you quit the program
46* Storage is stored in `~/.local/share/youtube-tui`
47* Config files are stored in `~/.config/youtube-tui`
48
49## Config files
50The config files are located in `~/.config/youtube-tui`, run the program once to create the config files. The following are the default config files:
51
52> ### `main.yml`
53> ```yaml
54> # The program's main config file
55> ---
56> yt_dl: # Donwload location for your downloaded videos
57> video_path: ~/Downloads/%(title)s.%(ext)s
58> audio_path: ~/Downloads/%(title)s.%(ext)s
59> max_watch_history: 50 # Maximum length of watch history
60> ```
61
62> ### `commands.yml`
63> ```yaml
64> # Command arguments to use when launching applications
65> ---
66> video_player:
67> command: mpv
68> open_in_console: false
69> args:
70> - "--no-terminal"
71> - "{url}"
72> audio_player:
73> command: mpv
74> open_in_console: true
75> args:
76> - "--no-video"
77> - "{url}"
78> image_viewer:
79> command: mpv
80> open_in_console: false
81> args:
82> - "{url}"
83> - "--no-terminal"
84> video_downloader:
85> command: yt-dlp
86> open_in_console: true
87> args:
88> - "{url}"
89> - "-o"
90> - "{video_save_location}"
91> audio_downloader:
92> command: yt-dlp
93> open_in_console: true
94> args:
95> - "{url}"
96> - "-o"
97> - "{audio_save_location}"
98> - "-x"
99> terminal:
100> command: konsole
101> open_in_console: false
102> args:
103> - "-e"
104> - "{command}"
105> playlist_audio_all:
106> command: mpv
107> open_in_console: true
108> args:
109> - "--no-video"
110> - "{url}"
111> playlist_video_all:
112> command: mpv
113> open_in_console: false
114> args:
115> - "{url}"
116> - "--no-terminal"
117> playlist_shuffle_audio_all:
118> command: mpv
119> open_in_console: true
120> args:
121> - "--no-video"
122> - "{url}"
123> - "--shuffle"
124> download_all_audio:
125> command: yt-dlp
126> open_in_console: true
127> args:
128> - "{url}"
129> - "-o"
130> - "{audio_save_location}"
131> - "-x"
132> download_all_video:
133> command: yt-dlp
134> open_in_console: true
135> args:
136> - "{url}"
137> - "-o"
138> - "{video_save_location}"
139> ```
140## To Do
141* Channel support
142* Update notice (e.g. when a new version is released on GitHub or crates.io, can be disabled in the config file)
143* Keybind options (e.g. change the keybinds in the config file)
144
145## Bugs
146* If there is a bug please open a GitHub issue thx :)