From c78fa94260462a887be0d9a64fdbe7ba4e781dbb Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Wed, 20 Oct 2021 06:03:14 +0100 Subject: (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. --- Scripts/.local/scripts/mpv_plus | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 Scripts/.local/scripts/mpv_plus (limited to 'Scripts/.local') 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}') -- cgit v1.2.3-13-gbd6f