remove disney+

This commit is contained in:
Shawn
2021-10-09 21:24:40 +08:00
parent 1a505cfc33
commit e176e250b6
2 changed files with 15 additions and 15 deletions

View File

@@ -29,13 +29,13 @@
function json2info(cnt,paras) {
var res = "----------------------\n\n"
var res = "\n"
cnt =JSON.parse(cnt)
for (i=0;i<paras.length;i++) {
res = cnt[paras[i]]? res + paran[i] + " : " + cnt[paras[i]] : res
res = paras[i] == "country_code"? res+" "+flags.get(cnt[paras[i]].toUpperCase())+"\n\n":res+"\n\n"
cnt[paras[i]] = paras[i] == "country_code"? cnt[paras[i]]+" "+flags.get(cnt[paras[i]].toUpperCase())+"⟧":cnt[paras[i]]
res = cnt[paras[i]]? res + paran[i] + " : " + cnt[paras[i]] +"\n\n" : res
}
res =res+ "----------------------\n"+$environment.params
res =res+ "------------------------------------\n\n节点 ➟ "+$environment.params
return res
}

View File

@@ -6,7 +6,7 @@ Thanks to & modified from
3. https://github.com/CoiaPrant/MediaUnlock_Test/blob/main/check.sh
For Quantumult-X 598+ ONLY!!!
For Quantumult-X 598+ ONLY!!
[task_local]
@@ -64,7 +64,7 @@ let result = {
"YouTube": 'YouTube: 检测失败,请重试',
"Netflix": 'Netflix: 检测失败,请重试',
"Dazn": "Dazn: 检测失败,请重试",
"Disney": "Disney+: 检测失败,请重试",
"Disney": "Disney: 检测失败,请重试",
//"Google": "Google 定位: 检测失败,请重试"
}
@@ -74,18 +74,18 @@ StreamingCheck()
function StreamingCheck(){
testYTB()
test(FILM_ID)
testDisney()
//testDisney()
testDazn()
setTimeout(function(){
$done({"title": result["title"],"message": "----------------------\n"+([result["YouTube"],result["Netflix"],result["Disney"],result["Dazn"]]).join("\n\n") +'\n----------------------\n'+ $environment.params})
},3600)
$done({"title": result["title"],"message": "\n "+([result["YouTube"],result["Netflix"],result["Dazn"]]).join("\n\n ") +'\n\n -----------------------------\n\n'+ " 节点" + arrow + $environment.params})
},3000)
}
function test(filmId) {
let option = {
url: BASE_URL + filmId,
opts: opts,
timeout: 3500,
timeout: 2800,
headers: {
'User-Agent':
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36',
@@ -123,7 +123,7 @@ function testYTB() {
let option = {
url: BASE_URL_YTB,
opts: opts,
timeout: 3500,
timeout: 2800,
headers: {
'User-Agent':
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36'
@@ -164,7 +164,7 @@ function testDisney(){
let option = {
url: BASE_URL_DISNEY,
opts: opts,
timeout: 3500,
timeout: 2800,
headers: {
'User-Agent':
'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36'
@@ -218,7 +218,7 @@ function testDazn() {
url: BASE_URL_Dazn,
method: "POST",
opts: opts,
timeout: 3500,
timeout: 2800,
headers: {
'User-Agent':
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.87 Safari/537.36',