Skip to content

Commit

Permalink
Exit the script when Session ID is unavailable
Browse files Browse the repository at this point in the history
  • Loading branch information
sunsettrack4 authored Aug 31, 2019
1 parent d9a4f98 commit 85e1c90
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ztvh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,9 @@ do
sed -i -e "2d" -e "s/[Ss]et-cookie: //g" -e "s/; Path.*//g" cookie_list
else
dialog --backtitle "[L41F0] [INSECURE] ZATTOO UNLIMITED BETA > LOGIN" --title "[6] FATAL ERROR" --infobox "Service unavailable! Please try again later!" 5 50
sleep 2s
clear
echo "ERROR: Failed to load Zattoo Session ID - script stopped."
exit 1
fi
else
Expand Down Expand Up @@ -648,6 +651,10 @@ do
sed -i -e "2d" -e "s/[Ss]et-cookie: //g" -e "s/; Path.*//g" cookie_list
else
dialog --backtitle "[L11F0] ZATTOO UNLIMITED BETA > PROVIDER" --title "[9] FATAL ERROR" --infobox "Service unavailable!" 3 50
sleep 2s
clear
echo "ERROR: Failed to load Zattoo Session ID - script stopped."
exit 1
fi
else
if grep -q "insecure=true" ~/ztvh/user/userfile 2> /dev/null
Expand Down Expand Up @@ -1524,7 +1531,7 @@ then
# M1000 MENU OVERLAY
if grep -q "insecure=true" ~/ztvh/user/userfile
then
echo 'dialog --backtitle "[M1000] ZATTOO UNLIMITED BETA" --title "MAIN MENU - INSECURE MODE" --menu "Welcome to Zattoo Unlimited! :)\n(c) 2017-2018 Jan-Luca Neumann\n\nIf you like this script, please support my work:\nhttps://paypal.me/sunsettrack4\n\nPlease choose a feature:" 19 55 10 \' > menu
echo 'dialog --backtitle "[M1000] ZATTOO UNLIMITED BETA" --title "MAIN MENU - INSECURE MODE" --menu "Welcome to Zattoo Unlimited! :)\n(c) 2017-2019 Jan-Luca Neumann\n\nIf you like this script, please support my work:\nhttps://paypal.me/sunsettrack4\n\nPlease choose a feature:" 19 55 10 \' > menu
else
echo 'dialog --backtitle "[M1000] ZATTOO UNLIMITED BETA" --title "MAIN MENU" --menu "Welcome to Zattoo Unlimited! :)\n(c) 2017-2018 Jan-Luca Neumann\n\nIf you like this script, please support my work:\nhttps://paypal.me/sunsettrack4\n\nPlease choose a feature:" 19 55 10 \' > menu
fi
Expand Down

0 comments on commit 85e1c90

Please sign in to comment.