不知道写了撒谎

This commit is contained in:
theluyuan 2023-06-29 22:00:07 +08:00
parent 465eea19f5
commit 768bdcc2af
3 changed files with 8 additions and 2 deletions

Binary file not shown.

View File

@ -9,6 +9,13 @@ const router = new Router()
router.get("/getQqList",async (ctx)=>{ router.get("/getQqList",async (ctx)=>{
let url = ctx.query.url let url = ctx.query.url
let videoid = url.split("/")
for(let i in videoid){
if(videoid[i] == "cover"){
videoid = videoid[i + 1].replace(".html")
break
}
}
let list = await getQqListData(url) let list = await getQqListData(url)
ctx.body = list ctx.body = list
}) })
@ -60,7 +67,6 @@ function startDown(data){
} }
setInterval(async ()=>{ setInterval(async ()=>{
let dowloadlist = await getDownList() let dowloadlist = await getDownList()
console.log(dowloadlist)
if(dowloadlist.length != 0 && !start){ if(dowloadlist.length != 0 && !start){
startDown(dowloadlist[0]) startDown(dowloadlist[0])
}else if(dowloadlist.length == 0){ }else if(dowloadlist.length == 0){

View File

@ -20,7 +20,7 @@ function run(){
}) })
} }
function getAll(sql){ function getAll(){
let args = arguments let args = arguments
return new Promise((res,err)=>{ return new Promise((res,err)=>{
database.all(...args,function (error,data){ database.all(...args,function (error,data){