README.md

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

112 lines · 4416 bytes

  1![](https://img.shields.io/github/languages/top/siriusmart/youtube-tui?label=rust)
  2![](https://shields.io/github/license/siriusmart/youtube-tui)
  3[![](https://img.shields.io/crates/d/youtube-tui?label=crates.io%20downloads)](https://crates.io/crates/youtube-tui)
  4[![](https://img.shields.io/crates/v/youtube-tui?label=crates.io%20version)](https://crates.io/crates/youtube-tui)
  5![](https://shields.io/github/stars/siriusmart/youtube-tui?style=social)
  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![Screenshot](https://cdn.discordapp.com/attachments/906941311142219816/990684947830419526/Screenshot_20220626_192433.png)
 18
 19> ### What's new in this commit
 20>
 21> * Fixed text list not scrolling with cursor bug (where the cursor just goes out of the screen)
 22> * Improvements to the `render()` method
 23
 24## Installation
 25
 26### Install from crates.io
 27
 28```bash
 29cargo install youtube-tui
 30```
 31### Clone from GitHub and build
 32
 33```bash
 34git clone https://github.com/sirusmart/youtube-tui && cd youtube-tui && cargo build --release
 35```
 36
 37The 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.
 38
 39> ### Dependencies
 40>
 41> This program does not requires any dependencies, but it is suggested these three things on your system that can be launched via command:
 42>
 43> 1. A video player (Default to `mpv`)
 44> 2. A terminal emulator (Defaults to `konsole`)
 45> 3. A YouTube downloader (Defaults to `yt-dlp`, strongly suggest NOT to use `youtube-dl` because it is now very slow)
 46>
 47> None of these dependencies are required as you can change them in config (in `commands.yml`)
 48
 49## Usage
 50
 51### To launch
 52
 53```bash
 54youtube-tui # or path to the binary
 55```
 56
 57### Movement
 58
 59|Key|What does it do|
 60|---|---|
 61|Arrow/Vim keys|Move in corresponding direction|
 62|Right arrow|Move cursor right
 63|Enter|Select/Launch|
 64|Q|Quit the program|
 65
 66> ### Note
 67>
 68> 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.
 69
 70### Config
 71
 72All config files are loacted at `~/.config/youtube-tui/`, will write documentations for that later
 73
 74## Known issues
 75
 76### Missing hash key: "selected"
 77
 78When 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.
 79
 80You should also see an error when visiting [this URL](https://vid.puffyan.us/api/v1/channels/UCAkuTH35kk3W1EL9vq6dj6A/playlists)
 81
 82Here's the [opened issue](https://github.com/iv-org/invidious/issues/3154)
 83
 84## Todo (First piority on top)
 85
 86* Put hard coded options into config files
 87* User manual + documentations
 88* Go directly to a page by URL
 89* Vim-like commands in status bar
 90* Command line launch options
 91* Channel search and channel video sort
 92* Recommended videos
 93
 94## Help needed
 95
 96Guys please I need help I'm kinda bad at coding tbh, these are stuff that I need help with
 97
 98* Publishing to the AUR
 99* Printing full resolution images to the terminal with Sixels
100
101## Credits
102
103* [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
104* [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
105* [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)
106
107
108... and of course, credits to myself for not having the ability to read the docs for ytfzf and decided to make my own instead. 
109
110## Anything Missing?
111
112If 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