add 系统下载地址配置cookies配置及

This commit is contained in:
2023-09-03 16:59:13 +08:00
parent f5c666a027
commit 8b7af9535c
8 changed files with 69 additions and 38 deletions

View File

@@ -1,7 +1,8 @@
const schedule = require('node-schedule');
const { getSub,updateSkip } = require('../sql/video');
const { getQqListData } = require("../getList/qq.js")
const { addDownList } = require("../sql/download.js")
const { addDownList } = require("../sql/download.js");
const { getConfig } = require('../config/config');
// 检查更新并将更新推送下载
async function addDown(i) {
@@ -20,7 +21,7 @@ async function addDown(i) {
}
for (let j = i.skip - 1; j < newlist.length; j++) {
let v = newlist[j]
await addDownList(v.item_params.title, `https://v.qq.com/x/cover/${cid}/${v.item_params.vid}.html`, `k:/dltest/${i.sid}`, new Date().getTime(), 0, i.sid)
await addDownList(v.item_params.title, `https://v.qq.com/x/cover/${cid}/${v.item_params.vid}.html`, `${getConfig().downloadPath}/${i.sid}`, new Date().getTime(), 0, i.sid)
}
await updateSkip(list.length + 1,i.id)
// console.log(JSON.stringify(list))