Skip to content

Commit

Permalink
Merge pull request #105 from tuzi3040/patch-1
Browse files Browse the repository at this point in the history
fix(jp/u-next test): fix u-next test
  • Loading branch information
lmc999 authored Nov 24, 2023
2 parents 9d0a82f + 0b99f06 commit c749425
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 @@ -577,7 +577,7 @@ function MediaUnlockTest_ViuTV() {
}

function MediaUnlockTest_unext() {
local result=$(curl $useNIC $usePROXY $xForward -${1} -s --max-time 10 "https://video-api.unext.jp/api/1/player?entity%5B%5D=playlist_url&episode_code=ED00148814&title_code=SID0028118&keyonly_flg=0&play_mode=caption&bitrate_low=1500" | python -m json.tool 2>/dev/null | grep 'result_status' | awk '{print $2}' | cut -d ',' -f1 2>&1)
local result=$(curl $useNIC $usePROXY $xForward -${1} -s --max-time 10 "https://cc.unext.jp" -H 'content-type: application/json' --data-raw '{"operationName":"cosmo_getPlaylistUrl","variables":{"code":"ED00479780","playMode":"caption","bitrateLow":192,"bitrateHigh":null,"validationOnly":false},"query":"query cosmo_getPlaylistUrl($code: String, $playMode: String, $bitrateLow: Int, $bitrateHigh: Int, $validationOnly: Boolean) {\n webfront_playlistUrl(\n code: $code\n playMode: $playMode\n bitrateLow: $bitrateLow\n bitrateHigh: $bitrateHigh\n validationOnly: $validationOnly\n ) {\n subTitle\n playToken\n playTokenHash\n beaconSpan\n result {\n errorCode\n errorMessage\n __typename\n }\n resultStatus\n licenseExpireDate\n urlInfo {\n code\n startPoint\n resumePoint\n endPoint\n endrollStartPosition\n holderId\n saleTypeCode\n sceneSearchList {\n IMS_AD1\n IMS_L\n IMS_M\n IMS_S\n __typename\n }\n movieProfile {\n cdnId\n type\n playlistUrl\n movieAudioList {\n audioType\n __typename\n }\n licenseUrlList {\n type\n licenseUrl\n __typename\n }\n __typename\n }\n umcContentId\n movieSecurityLevelCode\n captionFlg\n dubFlg\n commodityCode\n movieAudioList {\n audioType\n __typename\n }\n __typename\n }\n __typename\n }\n}\n"}' | python -m json.tool 2>/dev/null | grep 'resultStatus' | awk '{print $2}' | cut -d ',' -f1 2>&1)
if [ -n "$result" ]; then
if [[ "$result" == "475" ]]; then
echo -n -e "\r U-NEXT:\t\t\t\t${Font_Green}Yes${Font_Suffix}\n"
Expand Down

0 comments on commit c749425

Please sign in to comment.