|
|
@ -24,7 +24,8 @@ case "$choice" in |
|
|
|
#notify-send "Error while downloading: $clip" |
|
|
|
;; |
|
|
|
"play") |
|
|
|
mpv --ytdl-format='bestvideo[height<=?1080]+bestaudio/best' "$clip" |
|
|
|
mpv --ytdl-format='bestvideo[height<=?1080]+bestaudio/best' "$clip" 2>&1 | grep 'ERROR:' | xargs -n1 -d "\n" notify-send |
|
|
|
|
|
|
|
;; |
|
|
|
"audio search") |
|
|
|
st -e mpv --ytdl-format=bestaudio ytdl://ytsearch:"$clip" |
|
|
|