add 系统下载地址配置cookies配置及
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user