aboutsummaryrefslogtreecommitdiff
path: root/Scripts/.local/scripts/mpv_plus
blob: febc53b9e802be07cd4e768b12edf4aa3c6e6fee (plain)
1
2
3
4
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}')