[Synology] DownloadStation适配DSM7

This commit is contained in:
blackmatrix7 2022-05-18 17:45:00 +08:00
parent 5bbcb69d3c
commit 57f2b0397c
4 changed files with 381 additions and 2 deletions

View File

@ -1,4 +1,9 @@
# 网易云课堂_离线下载课程内容
#!name= 网易云课堂离线下载课程内容
#!desc= 将网易云课堂课程内容下载到群晖NAS。
#!openUrl=https://github.com/blackmatrix7/ios_rule_script/tree/master/script/synology
#!author= blackmatrix7
#!homepage= https://github.com/blackmatrix7/ios_rule_script
#!icon= https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/synology/icon/synology.jpg
[Script]
http-response ^https?:\/\/ke\.study\.youdao\.com\/course\/app\/detail.json requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/synology/downloadstation.js,tag=网易云课堂_离线下载课程内容

File diff suppressed because one or more lines are too long

View File

@ -9,7 +9,7 @@ let magicJS = MagicJS(scriptName, "INFO");
function SynoAuth(synoUrl, account, passwd) {
return new Promise((resolve, reject) => {
let options = {
url: `${synoUrl}/webapi/auth.cgi?api=SYNO.API.Auth&version=2&method=login&account=${account}&passwd=${passwd}&session=DownloadStation&format=cookie`,
url: `${synoUrl}/webapi/entry.cgi?api=SYNO.API.Auth&version=6&method=login&account=${account}&passwd=${passwd}`,
headers: {
"User-Agent": "Mozilla/5.0",
},

View File

@ -1,4 +1,10 @@
# Twitter离线下载收藏内容
#!name= Twitter离线下载收藏内容
#!desc= 将Twitter收藏内容下载到群晖NAS。
#!openUrl=https://github.com/blackmatrix7/ios_rule_script/tree/master/script/synology
#!author= blackmatrix7
#!homepage= https://github.com/blackmatrix7/ios_rule_script
#!icon= https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/synology/icon/synology.jpg
[Script]
http-response ^https?:\/\/api\.twitter\.com\/[0-9.]*\/favorites\/create.json requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/synology/downloadstation.js,tag=Twitter_离线下载收藏内容