This commit is contained in:
Shawn
2021-10-08 20:22:13 +08:00
parent f481ff12c4
commit 0ee56ad866

View File

@@ -6,7 +6,7 @@ Thanks to & modified from
3. https://github.com/CoiaPrant/MediaUnlock_Test/blob/main/check.sh 3. https://github.com/CoiaPrant/MediaUnlock_Test/blob/main/check.sh
For Quantumult-X 598+ For Quantumult-X 598+ ONLY!!!
[task_local] [task_local]
@@ -35,7 +35,7 @@ const FILM_ID = 81215567
const link = { "media-url": "https://raw.githubusercontent.com/KOP-XIAO/QuantumultX/master/img/southpark/7.png" } const link = { "media-url": "https://raw.githubusercontent.com/KOP-XIAO/QuantumultX/master/img/southpark/7.png" }
const policy_name = "Netflix" //填入你的 netflix 策略组名 const policy_name = "Netflix" //填入你的 netflix 策略组名
const arrow = "" const arrow = ""
var output = "" var output = ""
var opts = { var opts = {
@@ -64,7 +64,7 @@ let result = {
"YouTube": 'YouTube: 检测失败,请重试', "YouTube": 'YouTube: 检测失败,请重试',
"Netflix": 'Netflix: 检测失败,请重试', "Netflix": 'Netflix: 检测失败,请重试',
"Dazn": "Dazn: 检测失败,请重试", "Dazn": "Dazn: 检测失败,请重试",
"Disney": "Disney: 检测失败,请重试", "Disney": "Disney+: 检测失败,请重试",
//"Google": "Google 定位: 检测失败,请重试" //"Google": "Google 定位: 检测失败,请重试"
} }
@@ -78,14 +78,14 @@ function StreamingCheck(){
testDazn() testDazn()
setTimeout(function(){ setTimeout(function(){
$done({"title": result["title"],"message": "----------------------\n"+([result["YouTube"],result["Netflix"],result["Disney"],result["Dazn"]]).join("\n\n") +'\n----------------------\n'+ $environment.params}) $done({"title": result["title"],"message": "----------------------\n"+([result["YouTube"],result["Netflix"],result["Disney"],result["Dazn"]]).join("\n\n") +'\n----------------------\n'+ $environment.params})
},6000) },3600)
} }
function test(filmId) { function test(filmId) {
let option = { let option = {
url: BASE_URL + filmId, url: BASE_URL + filmId,
opts: opts, opts: opts,
timeout: 5000, timeout: 3500,
headers: { headers: {
'User-Agent': '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', '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 = { let option = {
url: BASE_URL_YTB, url: BASE_URL_YTB,
opts: opts, opts: opts,
timeout: 4000, timeout: 3500,
headers: { headers: {
'User-Agent': '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' '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,6 +164,7 @@ function testDisney(){
let option = { let option = {
url: BASE_URL_DISNEY, url: BASE_URL_DISNEY,
opts: opts, opts: opts,
timeout: 3500,
headers: { headers: {
'User-Agent': 'User-Agent':
'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36' 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36'
@@ -217,7 +218,7 @@ function testDazn() {
url: BASE_URL_Dazn, url: BASE_URL_Dazn,
method: "POST", method: "POST",
opts: opts, opts: opts,
timeout: 4000, timeout: 3500,
headers: { headers: {
'User-Agent': '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', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.87 Safari/537.36',