Skip to content

Commit f04dc63

Browse files
committed
Do not start grabber process if login credentials are incorrect
1 parent 5b63861 commit f04dc63

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

epg.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
clear
2323
echo " --------------------------------------------"
2424
echo " EASYEPG SIMPLE XMLTV GRABBER "
25-
echo " Release v0.3.1 BETA - 2019/05/13 "
25+
echo " Release v0.3.2 BETA - 2019/05/17 "
2626
echo " powered by "
2727
echo " "
2828
echo " ==THE======================================="

wpu/wpu.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ then
6262
session=$(curl -s -X POST -H "User-Agent: WAIPU_USER_AGENT" -H "Authorization: Bearer $(<user/session)" -H "Content-Type: application/x-www-form-urlencoded" --data-urlencode "$(sed '2d' user/userfile)" --data-urlencode "$(sed '1d' user/userfile)" --data-urlencode "grant_type=password" https://auth.waipu.tv/oauth/token 2>/dev/null | jq -r '.access_token')
6363
printf "\rLogin to waipu.tv webservice... OK!\n\n"
6464
else
65-
rm -rf user/userfile
66-
printf "\rLogin to waipu.tv webservice... FAILED!"
67-
sleep 2s
65+
printf "\rLogin to waipu.tv webservice... FAILED!\n\n"
66+
printf "[ LOGIN ERROR ] Please check your credentials!\n\n"
67+
exit 0
6868
fi
6969

7070

ztt/ztt.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ then
100100
session=$(<user/session)
101101
printf "\rLogin to Zattoo webservice... OK!\n\n"
102102
else
103-
rm -rf user/userfile
104-
printf "\rLogin to Zattoo webservice... FAILED!\n"
103+
printf "\rLogin to Zattoo webservice... FAILED!\n\n"
104+
printf "[ LOGIN ERROR ] Please check your credentials!\n\n"
105105
exit 1
106106
fi
107107

0 commit comments

Comments
 (0)