From 7edeec270d39569d6482e351c4a18f4f7a0b14f5 Mon Sep 17 00:00:00 2001 From: Alexander Bocken Date: Thu, 17 Sep 2020 13:43:37 +0200 Subject: [PATCH] updated youtube-dl in dmenuhandler --- .local/bin/tools/dmenuhandler | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/tools/dmenuhandler b/.local/bin/tools/dmenuhandler index a1b4ab6..ba8ba2a 100755 --- a/.local/bin/tools/dmenuhandler +++ b/.local/bin/tools/dmenuhandler @@ -8,7 +8,7 @@ case "$(printf "mpv\\ncopy url\\nqueue download\\nqueue youtube-dl\\nbrowser\\nr "mpv (loop)") setsid mpv --input-ipc-server=/tmp/mpvsoc$(date +%s) -quiet --loop "$1" >/dev/null 2>&1 & ;; "queue download") name="$( dmenuinput 'Name for file:' )" tsp curl -L -o $name "$1" >/dev/null 2>&1 ;; - "queue youtube-dl") youtube-dl --write-metadata -i -o '/home/alex/%(upload_date)s-%(title)s.%(ext)s' "$1" >/dev/null 2>&1 ;; + "queue youtube-dl") youtube-dl --add-metadata -i -o $HOME/'%(upload_date)s-%(title)s.%(ext)s' "$1" >/dev/null 2>&1;; cast) setsid $TERMINAL -e mkchromecast -y $1 --video --control ;; browser) setsid "$BROWSER" "$1" >/dev/null 2>&1 & ;;