From d6100faf043221c883913ed8955f683f8b62bb5e Mon Sep 17 00:00:00 2001 From: Keith Irwin Date: Wed, 5 Jan 2022 18:25:07 -0700 Subject: [PATCH] Fixed how it would try to stream nonexistant shows --- gdead | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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"