Skip to content

Commit

Permalink
Update check.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
lmc999 authored Feb 12, 2024
1 parent 303a0d4 commit 055df76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -517,9 +517,9 @@ function MediaUnlockTest_HuluJP() {
}

function MediaUnlockTest_MyTVSuper() {
local result=$(curl $useNIC $usePROXY $xForward -s -${1} --max-time 10 "https://www.mytvsuper.com/api/auth/getSession/self/" 2>&1 | python -m json.tool 2>/dev/null | grep 'region' | awk '{print $2}')
local result=$(curl $useNIC $usePROXY $xForward -s -${1} --max-time 10 "https://www.mytvsuper.com/api/auth/getSession/self/" 2>&1 | sed -n 's/.*"country_code":"\([A-Z]*\)".*/\1/p')

if [[ "$result" == "1" ]]; then
if [[ "$result" == "HK" ]]; then
echo -n -e "\r MyTVSuper:\t\t\t\t${Font_Green}Yes${Font_Suffix}\n"
return
else
Expand Down

0 comments on commit 055df76

Please sign in to comment.