updated youtube-dl in dmenuhandler

This commit is contained in:
Alexander Bocken 2020-09-17 13:43:37 +02:00
parent 3e6c697b6b
commit 7edeec270d
Signed by: Alexander
GPG Key ID: 1D237BE83F9B05E8

View File

@ -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 & ;; "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:' )" "queue download") name="$( dmenuinput 'Name for file:' )"
tsp curl -L -o $name "$1" >/dev/null 2>&1 ;; 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 cast) setsid $TERMINAL -e mkchromecast -y $1 --video --control
;; ;;
browser) setsid "$BROWSER" "$1" >/dev/null 2>&1 & ;; browser) setsid "$BROWSER" "$1" >/dev/null 2>&1 & ;;