fix 花絮

This commit is contained in:
theluyuan 2023-08-08 21:37:17 +08:00
parent 2573e824c3
commit e1f3ff2b74

View File

@ -12,8 +12,14 @@ async function addDown(i) {
let list = await getQqListData(cid) let list = await getQqListData(cid)
console.log(list) console.log(list)
list = list.item_datas list = list.item_datas
for (let j = i.skip - 1; j < list.length; j++) { let newlist = []
let v = list[j] for(let i in list){
if(!isNaN(Number(list[i].item_params.title))){
newlist.push(list[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`, `k:/dltest/${i.sid}`, new Date().getTime(), 0, i.sid)
} }
await updateSkip(list.length + 1,i.id) await updateSkip(list.length + 1,i.id)