Skip to content

Commit

Permalink
Fix Netflix check
Browse files Browse the repository at this point in the history
  • Loading branch information
lmc999 authored Nov 26, 2024
1 parent 7deb2b0 commit 2204925
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,7 @@ function MediaUnlockTest_Netflix() {
fi
if [ "$result1" == '200' ] || [ "$result2" == '200' ]; then
local tmpresult=$(curl ${CURL_DEFAULT_OPTS} -sL 'https://www.netflix.com/' -H 'accept-language: en-US,en;q=0.9' -H "sec-ch-ua: ${UA_SEC_CH_UA}" -H 'sec-ch-ua-mobile: ?0' -H 'sec-ch-ua-platform: "Windows"' -H 'sec-fetch-site: none' -H 'sec-fetch-mode: navigate' -H 'sec-fetch-user: ?1' -H 'sec-fetch-dest: document' --user-agent "${UA_BROWSER}")
local region=$(echo "$tmpresult" | grep -woP '"requestCountry":{"id":"\K\w\w' | head -n 1)
local region=$(echo "$tmpresult" | grep -oP '"countryName":"\K[^"]+' | head -n 1)
echo -n -e "\r Netflix:\t\t\t\t${Font_Green}Yes (Region: ${region})${Font_Suffix}\n"
return
fi
Expand Down

0 comments on commit 2204925

Please sign in to comment.