[cliplumber] Add error notification for youtube-dl with option 'play'
This commit is contained in:
parent
0fee4131e5
commit
14fbd2cfdb
1 changed files with 2 additions and 1 deletions
|
@ -24,7 +24,8 @@ case "$choice" in
|
||||||
#notify-send "Error while downloading: $clip"
|
#notify-send "Error while downloading: $clip"
|
||||||
;;
|
;;
|
||||||
"play")
|
"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")
|
"audio search")
|
||||||
st -e mpv --ytdl-format=bestaudio ytdl://ytsearch:"$clip"
|
st -e mpv --ytdl-format=bestaudio ytdl://ytsearch:"$clip"
|
||||||
|
|
Loading…
Reference in a new issue