Fixed how it would try to stream nonexistant shows
parent
32cc66e6b3
commit
d6100faf04
7
gdead
7
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"
|
||||
|
|
Loading…
Reference in New Issue