Watch youtube videos with mpv while saving the video to disk.
GPL-3.0 License
install from aur
yay -S ywatch-git
archlinux-keyring
install using pip
echo $PATH
export PATH=$HOME/.local/bin:$PATH
sudo apt install xclip mpv youtube-dl
pip install ywatch
sudo pacman -S xclip mpv youtube-dl
pip install ywatch
pip install ywatch
>> yw -h
The output/video files will be on ~/Videos/WATCHED
usage: yw [-h] [-b] [-c] [-d] [-f] [-p] [-m] [-r] [-s] [-sk] [-sp] [-v] [-w] [Quality]
Quality
1/8 = 1080p | 2 = 240p | 3 = 360p | 4 = 480p
7 = 720p | 9 = 1440p | 0 = 2160p
w = worst | b = best | a = audio(m4a)
o = audio(opus) | O = audio(Best Opus)
default is 480p
optional arguments:
-h, --help show this help message and exit
-b, --bar enable bar
-c, --disable-clear don't clear the screen
-d, --dir save to current directory
-f, --fullscreen enable fullscreen
-p, --playonly play only, don't save
-m, --mkv play mkv, default is mp4
-r, --disable-resume don't resume, start at the beginning
(wont work on live videos)
-s, --size show size and exit
-sk, --size-mkv show mkv size, don't forget the '-m' option
-sp, --size-mp4 show mp4 size
-v, --version show version
-w, --watch play after streaming