|
|
|
@ -16,9 +16,7 @@ function aliShare(share_id, folder_id, share_pwd) { |
|
|
|
|
addListener("onClose", $.toString(() => { |
|
|
|
|
refreshPage(false); |
|
|
|
|
})); |
|
|
|
|
let cfgfile = "hiker://files/rules/Src/config.json"; |
|
|
|
|
eval("let JYconfig=" + fetch(cfgfile) + ";"); |
|
|
|
|
require(JYconfig["juying"] + 'SrcJyAliDisk.js'); |
|
|
|
|
require(config.依赖.match(/http(s)?:\/\/.*\//)[0].replace('/Ju/','/master/') + 'SrcJyAliDisk.js'); |
|
|
|
|
let d = myDiskMenu(0); |
|
|
|
|
setResult(d); |
|
|
|
|
}), |
|
|
|
@ -41,9 +39,7 @@ function aliShare(share_id, folder_id, share_pwd) { |
|
|
|
|
title: item.name, |
|
|
|
|
img: "hiker://files/cache/src/文件夹.svg",//#noRecordHistory##noHistory#
|
|
|
|
|
url: $("hiker://empty##https://www.aliyundrive.com/s/"+item.share_id+(item.file_id?"/folder/"+item.file_id:"")).rule((share_id, folder_id, share_pwd) => { |
|
|
|
|
let cfgfile = "hiker://files/rules/Src/config.json"; |
|
|
|
|
eval("let JYconfig=" + fetch(cfgfile) + ";"); |
|
|
|
|
require(JYconfig["juying"] + 'SrcJyAliDisk.js'); |
|
|
|
|
require(config.依赖.match(/http(s)?:\/\/.*\//)[0].replace('/Ju/','/master/') + 'SrcJyAliDisk.js'); |
|
|
|
|
aliShare(share_id, folder_id, share_pwd); |
|
|
|
|
}, item.share_id, item.file_id, share_pwd), |
|
|
|
|
col_type: 'avatar', |
|
|
|
@ -74,9 +70,7 @@ function aliShare(share_id, folder_id, share_pwd) { |
|
|
|
|
title: item.name, |
|
|
|
|
img: item.thumbnail || (item.category == "video" ? "hiker://files/cache/src/影片.svg" : item.category == "audio" ? "hiker://files/cache/src/音乐.svg" : item.category == "image" ? "hiker://files/cache/src/图片.png" : "https://img.alicdn.com/imgextra/i1/O1CN01mhaPJ21R0UC8s9oik_!!6000000002049-2-tps-80-80.png"), |
|
|
|
|
url: $("hiker://empty##").lazyRule((share_id, file_id, sub_file_id, share_pwd) => { |
|
|
|
|
let cfgfile = "hiker://files/rules/Src/config.json"; |
|
|
|
|
eval("let JYconfig=" + fetch(cfgfile) + ";"); |
|
|
|
|
require(JYconfig["juying"] + 'SrcJyAliPublic.js'); |
|
|
|
|
require(config.依赖.match(/http(s)?:\/\/.*\//)[0].replace('/Ju/','/master/') + 'SrcJyAliPublic.js'); |
|
|
|
|
let play = getAliUrl(share_id, file_id, share_pwd); |
|
|
|
|
if (play.urls) { |
|
|
|
|
let subtitle; |
|
|
|
@ -164,16 +158,12 @@ function aliDiskSearch(input,data) { |
|
|
|
|
let home = "https://www.aliyundrive.com/s/"; |
|
|
|
|
if(obj.name=="我的云盘"){ |
|
|
|
|
arr.url = $("hiker://empty##").rule((input) => { |
|
|
|
|
let cfgfile = "hiker://files/rules/Src/config.json"; |
|
|
|
|
eval("let JYconfig=" + fetch(cfgfile) + ";"); |
|
|
|
|
require(JYconfig["juying"] + 'SrcJyAliDisk.js'); |
|
|
|
|
require(config.依赖.match(/http(s)?:\/\/.*\//)[0].replace('/Ju/','/master/') + 'SrcJyAliDisk.js'); |
|
|
|
|
aliMyDisk(input); |
|
|
|
|
},item.url); |
|
|
|
|
}else if(item.url.includes(home)){ |
|
|
|
|
arr.url = $("hiker://empty##").rule((input) => { |
|
|
|
|
let cfgfile = "hiker://files/rules/Src/config.json"; |
|
|
|
|
eval("let JYconfig=" + fetch(cfgfile) + ";"); |
|
|
|
|
require(JYconfig["juying"] + 'SrcJyAliDisk.js'); |
|
|
|
|
require(config.依赖.match(/http(s)?:\/\/.*\//)[0].replace('/Ju/','/master/') + 'SrcJyAliDisk.js'); |
|
|
|
|
aliShareUrl(input); |
|
|
|
|
},item.url); |
|
|
|
|
} else if (obj.erparse) { |
|
|
|
@ -182,9 +172,7 @@ function aliDiskSearch(input,data) { |
|
|
|
|
let aurl = Parse(url); |
|
|
|
|
if(aurl.indexOf('aliyundrive.com')>-1){ |
|
|
|
|
return $("hiker://empty##").rule((input) => { |
|
|
|
|
let cfgfile = "hiker://files/rules/Src/config.json"; |
|
|
|
|
eval("let JYconfig=" + fetch(cfgfile) + ";"); |
|
|
|
|
require(JYconfig["juying"] + 'SrcJyAliDisk.js'); |
|
|
|
|
require(config.依赖.match(/http(s)?:\/\/.*\//)[0].replace('/Ju/','/master/') + 'SrcJyAliDisk.js'); |
|
|
|
|
aliShareUrl(input); |
|
|
|
|
},aurl) |
|
|
|
|
}else{ |
|
|
|
@ -270,9 +258,7 @@ function aliMyDisk(folder_id,nofilter) { |
|
|
|
|
title: item.name, |
|
|
|
|
img: "hiker://files/cache/src/文件夹.svg", |
|
|
|
|
url: $("hiker://empty").rule((folder_id,nofilter) => { |
|
|
|
|
let cfgfile = "hiker://files/rules/Src/config.json"; |
|
|
|
|
eval("let JYconfig=" + fetch(cfgfile) + ";"); |
|
|
|
|
require(JYconfig["juying"] + 'SrcJyAliDisk.js'); |
|
|
|
|
require(config.依赖.match(/http(s)?:\/\/.*\//)[0].replace('/Ju/','/master/') + 'SrcJyAliDisk.js'); |
|
|
|
|
aliMyDisk(folder_id,nofilter); |
|
|
|
|
}, item.file_id,nofilter), |
|
|
|
|
col_type: 'avatar', |
|
|
|
@ -304,9 +290,7 @@ function aliMyDisk(folder_id,nofilter) { |
|
|
|
|
img: item.thumbnail? item.thumbnail+"@Referer=https://www.aliyundrive.com/" : item.category == "video" ? "hiker://files/cache/src/影片.svg" : item.category == "audio" ? "hiker://files/cache/src/音乐.svg" : item.category == "image" ? "hiker://files/cache/src/图片.png" : "https://img.alicdn.com/imgextra/i1/O1CN01mhaPJ21R0UC8s9oik_!!6000000002049-2-tps-80-80.png@Referer=", |
|
|
|
|
url: $("hiker://empty##").lazyRule((category,file_id,file_url,sub_file_url) => { |
|
|
|
|
if(category=="video"){ |
|
|
|
|
let cfgfile = "hiker://files/rules/Src/config.json"; |
|
|
|
|
eval("let JYconfig=" + fetch(cfgfile) + ";"); |
|
|
|
|
require(JYconfig["juying"] + 'SrcJyAliPublic.js'); |
|
|
|
|
require(config.依赖.match(/http(s)?:\/\/.*\//)[0].replace('/Ju/','/master/') + 'SrcJyAliPublic.js'); |
|
|
|
|
if(alitoken){ |
|
|
|
|
let play = aliMyPlayUrl(file_id); |
|
|
|
|
if (play.urls) { |
|
|
|
|