diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2021-10-20 06:03:14 +0100 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2021-10-20 06:03:14 +0100 |
commit | c78fa94260462a887be0d9a64fdbe7ba4e781dbb (patch) | |
tree | 4654001cbb3c67713b6b4c8d5e5dba2fce150182 /Scripts/.local | |
parent | a4967156250c0bd45399fcec2fa56100a408ae32 (diff) | |
download | dotfiles-c78fa94260462a887be0d9a64fdbe7ba4e781dbb.tar.gz dotfiles-c78fa94260462a887be0d9a64fdbe7ba4e781dbb.tar.bz2 dotfiles-c78fa94260462a887be0d9a64fdbe7ba4e781dbb.zip |
(Scripts)+script to make using mpv a bit less painful
Currently queries via YouTube-dl (ytdl) for quality options then asks
user for preferred quality, setting that in mpv.
Diffstat (limited to 'Scripts/.local')
-rwxr-xr-x | Scripts/.local/scripts/mpv_plus | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Scripts/.local/scripts/mpv_plus b/Scripts/.local/scripts/mpv_plus new file mode 100755 index 0000000..febc53b --- /dev/null +++ b/Scripts/.local/scripts/mpv_plus @@ -0,0 +1,5 @@ +#!/bin/env sh + +url=$1 +option=$(youtube-dl -F $url | sed -n '/^format$/,$p' | awk '{print $1 " " $2 " " $3 " " $4}' | dmenu -p "Choose quality: ") +mpv $1 --ytdl-format=$(echo $option | awk '{print $1}') |