README.md
123 lines · 4576 bytes
1
2
3[](https://crates.io/crates/youtube-tui)
4[](https://crates.io/crates/youtube-tui)
5
6
7# YouTube TUI
8
9An aesthetically pleasing pleasing YouTube TUI written in Rust.
10
11## Overview
12
13YouTube TUI is a text user interface that provides a clean UI for browsing YouTube content. It can perform searches and view channels in the terminal, play videos and playlists with external programs like MPV. Rust is used in writing this program for its better performance and ease of maintaining.
14
15This program is being actively developed and there will be new features coming up every commit.
16
17
18
19## User manual
20
21[YouTube TUI user manual](https://siriusmart.github.io/youtube-tui)
22
23## Chnagelogs
24
25#### Added
26
27* Added default select item for each page (can be changed in `layouts.yml`)
28
29#### Fixes
30
31* Video list view in playlists not working
32* Channel view scroll causes panic
33* Search options gray backgound + image covering popup
34
35## Installation
36
37### Install from crates.io
38
39```bash
40cargo install youtube-tui
41```
42### Clone from GitHub and build
43
44```bash
45git clone https://github.com/sirusmart/youtube-tui && cd youtube-tui && cargo build --release
46```
47
48The binary is located at `./target/release/youtube-tui`, go move it to other locations so that you can launch the program with `youtube-tui` command.
49
50> ### Dependencies
51>
52> This program does not requires any dependencies, but it is suggested these three things on your system that can be launched via command:
53>
54> 1. A video player (Defaults to `mpv`)
55> 2. A terminal emulator (Defaults to `konsole`)
56> 3. A YouTube downloader (Defaults to `yt-dlp`, strongly suggest NOT to use `youtube-dl` because it is now very slow)
57>
58> None of these dependencies are required as you can change them in config (in `commands.yml`)
59
60## Usage
61
62### To launch
63
64```bash
65youtube-tui # or path to the binary
66```
67
68### Movement
69
70|Key|What does it do|
71|---|---|
72|Arrow/Vim keys|Move in corresponding direction|
73|Enter|Select/Launch|
74|Q|Quit the program|
75
76Check the user manual [here](https://siriusmart.github.io/youtube-tui)
77
78> ### Note
79>
80> These keys only work when nothing is selected. When something is selected, your key presses are passed directly to the "object" you've selected. Press escape (Esc) if you want to deselect.
81
82### Config
83
84All config files are loacted at `~/.config/youtube-tui/`, will write documentations for that later
85
86## Known issues
87
88### Missing hash key: "selected"
89
90When viewing the playlists page in a channel, it gives you `Missing hash key: "selected"`. This is because Invidious was not able to fetch the requested playlists.
91
92You should also see an error when visiting [this URL](https://vid.puffyan.us/api/v1/channels/UCAkuTH35kk3W1EL9vq6dj6A/playlists)
93
94Here's the [opened issue](https://github.com/iv-org/invidious/issues/3154)
95
96## Todo (First piority on top)
97
98* Go directly to a page by URL
99* Vim-like commands in status bar
100* Save as local playlist/video
101* Command line launch options
102* Channel search and channel video sort
103* Recommended videos
104
105## Help needed
106
107Guys please I need help I'm kinda bad at coding tbh, these are stuff that I need help with
108
109* Publishing to the AUR
110* Printing full resolution images to the terminal with Sixels
111
112## Credits
113
114* [ytfzf](https://github.com/pystardust/ytfzf) by [pystardust](https://github.com/pystardust) - The TUI I used to watch YouTube, gave me an idea how this program is going to work
115* [Terminal Typeracer](https://gitlab.com/ttyperacer/terminal-typeracer) by [Darrien Glasser](https://gitlab.com/DarrienG) - A very clean looking TUI for typing speed test, gave me idea on how this program should look like
116* [Invidious](https://invidious.io) - For having a nice API for doing YouTube searches and stuff. (I made a wrapper for the API you can check it [here](https://crates.io/crates/invidious) out if you want to)
117
118
119... and of course, credits to myself for not having the ability to read the docs for ytfzf and decided to make my own instead.
120
121## Anything Missing?
122
123If there is a bug or you got a nice idea on what can be added to this program, feel free to open a GitHub issue. Thx :D