Terminal youtube client
Small script to select videos in terminal and watch them with mpv.
Features
- Terminal user interface
- Download/watch videos
- Video quality selection
- Audio playback/download
- History, Favorite channels
Dependencies
- mpv (for watchling online)
- yt-dlp (for downloading)
Installation
$ wget https://raw.githubusercontent.com/tzrn/tmyt/main/tmyt
$ chmod +x tmyt
# mv tmyt /bin/tmyt
Usage
tmyt
opens defaut menutmyt kittens
searches for kittens plays selectedtmyt -da kittens
searches for kittens downloads audio of selectedtmyt -v
to go directly to the historytmyt -c
to go directly to channelstmyt -b
will play and download video at the same time- channels added by editing ~/.config/tmyt/channels file. Each string should contain channel id and channel name separated by space. e.g. somechannel Channel name\n
- default download location is ~/Downloads to change it write wanted location to ~/.config/tmyt/dndir e.g. /home/robot/Videos
- To get whiptail colorscheme as shown on screenshot add following to your shell starting script (.bashrc .zshrc etc.)
export NEWT_COLORS='root=,black
border=red,black
title=red,black
roottext=red,black
window=red,black
textbox=white,black
compactbutton=white,black
listbox=white,black
actlistbox=black,white
actsellistbox=black,red'