不知道写了撒谎
This commit is contained in:
parent
465eea19f5
commit
768bdcc2af
BIN
db/database.db
BIN
db/database.db
Binary file not shown.
@ -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){
|
||||
|
@ -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){
|
||||
|
Loading…
Reference in New Issue
Block a user