add 发种与下载种子 移动到做种文件夹

This commit is contained in:
2023-07-31 22:03:45 +08:00
parent 655703f5fe
commit 3f8f14c024
16 changed files with 226 additions and 71 deletions

View File

@@ -7,12 +7,14 @@ const { addDownList } = require("../sql/download.js")
async function addDown(i) {
// 判断视频网站
if (i.url.indexOf("v.qq.com") != -1) {
let cid = i.url.split("/")[5].replace(".html")
let cid = i.url.split("/")[5].replace(".html","")
console.log(cid)
let list = await getQqListData(cid)
console.log(list)
list = list.item_datas
for (let j = i.skip - 1; j < list.length; j++) {
let v = list[j]
await addDownList(v.item_params.title, `https://v.qq.com/x/cover/${cid}/${v.item_params.vid}.html`, `d:/aaa/${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`, `k:/dltest/${i.sid}`, new Date().getTime(), 0, i.sid)
}
await updateSkip(list.length + 1,i.id)
// console.log(JSON.stringify(list))