不知道写了撒谎
This commit is contained in:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user