Commit a6f98fcade
Unregistered key
Layout: unified · split
README.md +22 −34
| @@ -4,15 +4,13 @@ | ||
| 4 | 4 | [](https://crates.io/crates/youtube-tui) |
| 5 | 5 |  |
| 6 | 6 | |
| 7 | # YouTube TUI | |
| 7 | # YouTube# TUI | |
| 8 | 8 | |
| 9 | An aesthetically pleasing pleasing YouTube TUI written in Rust. | |
| 9 | An aesthetically pleasing YouTube TUI written in Rust. | |
| 10 | 10 | |
| 11 | 11 | ## Overview |
| 12 | YouTube TUI is a text user interface that provides a clean TUI for browsing YouTube. It can perform YouTube query searches, view and inspect channels, and play the desired content as a regular video or audio-only stream for saving bandwidth. | |
| 12 | 13 | |
| 13 | YouTube 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 | ||
| 15 | This program is being actively developed and there will be new features coming up every commit. | |
| 16 | 14 | |
| 17 | 15 |  |
| 18 | 16 | |
| @@ -44,7 +42,7 @@ So I fixed that one single typo and continued with stuff | ||
| 44 | 42 | |
| 45 | 43 | ## Installation |
| 46 | 44 | |
| 47 | ### Install from the AUR | |
| 45 | ###Install from the AUR | |
| 48 | 46 | |
| 49 | 47 | ```bash |
| 50 | 48 | yay -S youtube-tui-git # Or any other AUR helper |
| @@ -55,37 +53,27 @@ yay -S youtube-tui-git # Or any other AUR helper | ||
| 55 | 53 | ```bash |
| 56 | 54 | cargo install youtube-tui |
| 57 | 55 | ``` |
| 58 | ### Clone from GitHub and build | |
| 59 | 56 | |
| 57 | ### Clone from GitHub and build | |
| 60 | 58 | ```bash |
| 61 | 59 | git clone https://github.com/sirusmart/youtube-tui && cd youtube-tui && cargo build --release |
| 62 | 60 | ``` |
| 61 | Once build, the compiled binary will be located at `./target/release/youtube-tui`. The program is not in your path yet, so you'll have to manually move to to a place from which you would be able to execute it. A common way to do so is to copy the binary executable to `/usr/local/bin/youtube-tui`. | |
| 63 | 62 | |
| 64 | The 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. | |
| 65 | ||
| 66 | > ### Dependencies | |
| 67 | > | |
| 68 | > This program does not requires any dependencies, but it is suggested these three things on your system that can be launched via command: | |
| 69 | > | |
| 70 | > 1. A video player (Defaults to `mpv`) | |
| 71 | > 2. A terminal emulator (Defaults to `konsole`) | |
| 72 | > 3. A YouTube downloader (Defaults to `yt-dlp`, strongly suggest NOT to use `youtube-dl` because it is now very slow) | |
| 73 | > | |
| 74 | > None of these dependencies are required as you can change them in config (in `commands.yml`) | |
| 75 | ||
| 76 | ## Usage | |
| 63 | ### Dependencies | |
| 64 | This program does not require any dependencies, but it is strongly recommended that there are at least three things present in your system's path as executable commands: | |
| 77 | 65 | |
| 78 | ### To launch | |
| 66 | * A video player (Defaults to `MPV`) | |
| 67 | * A terminal emulator (Defaults to `konsole`) | |
| 68 | * A YouTube downloader (Defaults to `yt-dlp`, it is recommended that you do not use `yt-dl`, as the download speeds are ludicrously slow) | |
| 79 | 69 | |
| 80 | ```bash | |
| 81 | youtube-tui # or path to the binary | |
| 82 | ``` | |
| 70 | > None of these dependencies is required, and you can change the defaults in the config file `commands.yml` | |
| 83 | 71 | |
| 84 | 72 | ### Movement |
| 85 | 73 | |
| 86 | 74 | |Key|What does it do| |
| 87 | 75 | |---|---| |
| 88 | |Arrow/Vim keys|Move in corresponding direction| | |
| 76 | |Arrow/Vim keys|Move in the corresponding direction| | |
| 89 | 77 | |Enter|Select/Launch| |
| 90 | 78 | |Q|Quit the program| |
| 91 | 79 | |
| @@ -97,22 +85,22 @@ Check the user manual [here](https://siriusmart.github.io/youtube-tui) | ||
| 97 | 85 | |
| 98 | 86 | ### Config |
| 99 | 87 | |
| 100 | All config files are loacted at `~/.config/youtube-tui/`, will write documentations for that later | |
| 88 | All config files are located at `~/.config/youtube-tui/`, will write documentation for that later | |
| 101 | 89 | |
| 102 | 90 | ## Known issues |
| 103 | 91 | |
| 104 | 92 | ### Missing hash key: "selected" |
| 105 | 93 | |
| 106 | When 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. | |
| 94 | When viewing the playlists page in a channel, it gives you a `Missing hash key: "selected"`. This is because Invidious was not able to fetch the requested playlists. | |
| 107 | 95 | |
| 108 | 96 | You should also see an error when visiting [this URL](https://vid.puffyan.us/api/v1/channels/UCAkuTH35kk3W1EL9vq6dj6A/playlists) |
| 109 | 97 | |
| 110 | 98 | Here's the [opened issue](https://github.com/iv-org/invidious/issues/3154) |
| 111 | 99 | |
| 112 | ## Todo (First piority on top) | |
| 100 | ## Todo (Priority on top) | |
| 113 | 101 | |
| 114 | 102 | * Go directly to a page by URL |
| 115 | * Vim-like commands in status bar | |
| 103 | * Vim-like commands in the status bar | |
| 116 | 104 | * Save as local playlist/video |
| 117 | 105 | * Command line launch options |
| 118 | 106 | * Channel search and channel video sort |
| @@ -120,15 +108,15 @@ Here's the [opened issue](https://github.com/iv-org/invidious/issues/3154) | ||
| 120 | 108 | |
| 121 | 109 | ## Help needed |
| 122 | 110 | |
| 123 | Guys please I need help I'm kinda bad at coding tbh, these are stuff that I need help with | |
| 111 | Guys please I need help I'm kinda bad at coding tbh, so these are stuff that I need help with | |
| 124 | 112 | |
| 125 | 113 | * Publishing to the AUR |
| 126 | * Printing full resolution images to the terminal with Sixels | |
| 114 | * Printing full resolution images to the terminal with Sixel | |
| 127 | 115 | |
| 128 | 116 | ## Credits |
| 129 | 117 | |
| 130 | * [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 | |
| 131 | * [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 | |
| 118 | * [ytfzf](https://github.com/pystardust/ytfzf) by [pystardust](https://github.com/pystardust) - The TUI I used to watch on YouTube, gave me an idea of how this program is going to work | |
| 119 | * [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 an idea of how this program should look like | |
| 132 | 120 | * [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) |
| 133 | 121 | |
| 134 | 122 | |
| @@ -136,4 +124,4 @@ Guys please I need help I'm kinda bad at coding tbh, these are stuff that I need | ||
| 136 | 124 | |
| 137 | 125 | ## Anything Missing? |
| 138 | 126 | |
| 139 | If 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 | |
| 127 | If there is a bug or you got a nice idea of what can be added to this program, feel free to open a GitHub issue. Thx :D | |