diff --git a/db/database.db b/db/database.db index d4f427b..e1d032f 100644 Binary files a/db/database.db and b/db/database.db differ diff --git a/router/index.js b/router/index.js index 116cca2..334b7c7 100644 --- a/router/index.js +++ b/router/index.js @@ -9,6 +9,13 @@ const router = new Router() router.get("/getQqList",async (ctx)=>{ 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) ctx.body = list }) @@ -60,7 +67,6 @@ function startDown(data){ } setInterval(async ()=>{ let dowloadlist = await getDownList() - console.log(dowloadlist) if(dowloadlist.length != 0 && !start){ startDown(dowloadlist[0]) }else if(dowloadlist.length == 0){ diff --git a/util/sql/base.js b/util/sql/base.js index d056e40..efe4670 100644 --- a/util/sql/base.js +++ b/util/sql/base.js @@ -20,7 +20,7 @@ function run(){ }) } -function getAll(sql){ +function getAll(){ let args = arguments return new Promise((res,err)=>{ database.all(...args,function (error,data){