Fixed how it would try to stream nonexistant shows

master
Keith Irwin 2022-01-05 18:25:07 -07:00
parent 32cc66e6b3
commit d6100faf04
Signed by: ki9
GPG Key ID: DF773B3F4A88DA86
1 changed files with 6 additions and 1 deletions

7
gdead
View File

@ -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"