diff --git a/gdead b/gdead index 9d43f2d..caa30a1 100755 --- a/gdead +++ b/gdead @@ -81,9 +81,14 @@ fi # Remove pipe rm $PIPE 2>/dev/null +if [ "$res" == "null" ]; then + echo "No shows found." + exit 5 +fi + # Stream it... stream="https://archive.org/download/$res/${res}_vbr.m3u" # ...with VLC in the system tray #vlc --http-user-agent "$UA" --qt-system-tray --qt-start-minimized "$stream" # ...with ncurses VLC -nvlc --http-user-agent "$UA" "$stream" +nvlc --play-and-exit --http-user-agent "$UA" "$stream"