aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xScripts/.local/scripts/mpv_plus5
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}')