Skip to content

Commit c3b1c9e

Browse files
committed
Fix Hotstar check
1 parent 91fdafd commit c3b1c9e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

check.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,7 @@ function MediaUnlockTest_Netflix() {
819819
echo -n -e "\r Netflix:\t\t\t\t${Font_Yellow}Originals Only${Font_Suffix}\n"
820820
return
821821
fi
822-
822+
823823
if [ -z "${result1}" ] || [ -z "${result2}" ]; then
824824
local region=$(echo "$tmpresult1" | grep -o 'data-country="[A-Z]*"' | sed 's/.*="\([A-Z]*\)"/\1/' | head -n1)
825825
echo -n -e "\r Netflix:\t\t\t\t${Font_Green}Yes (Region: ${region})${Font_Suffix}\n"
@@ -2008,6 +2008,10 @@ function MediaUnlockTest_HotStar() {
20082008
echo -n -e "\r HotStar:\t\t\t\t${Font_Yellow}No (Discontinued in the US)${Font_Suffix}\n"
20092009
return
20102010
fi
2011+
if [ -z "$siteRegion" ]; then
2012+
echo -n -e "\r HotStar:\t\t\t\t${Font_Red}No${Font_Suffix}\n"
2013+
return
2014+
fi
20112015
if [ "$region" == "$siteRegion" ]; then
20122016
echo -n -e "\r HotStar:\t\t\t\t${Font_Green}Yes (Region: ${region})${Font_Suffix}\n"
20132017
return

0 commit comments

Comments
 (0)