不知道写了啥
This commit is contained in:
parent
b439920702
commit
465eea19f5
@ -1,8 +1,8 @@
|
||||
const { run, getAll } = require("./base");
|
||||
|
||||
function addDownList(title,url,save,downDate,isOk){
|
||||
let sql = `insert into download(title,url,save,downDate,isOk) values(?,?,?,?,?)`
|
||||
run(sql,title,url,save,downDate,isOk)
|
||||
function addDownList(title,url,save,downDate,isOk,vid){
|
||||
let sql = `insert into download(title,url,save,downDate,isOk,vid) values(?,?,?,?,?,?)`
|
||||
run(sql,title,url,save,downDate,isOk,vid)
|
||||
}
|
||||
|
||||
async function getDownList(){
|
||||
@ -21,6 +21,19 @@ async function setDownState(id,state){
|
||||
await run(sql,state,id)
|
||||
}
|
||||
|
||||
async function getVideoInfo(url){
|
||||
if(url){
|
||||
let sql = `select * from VideoInfo where url = '?'`
|
||||
let list = await getAll(sql,url)
|
||||
}else{
|
||||
let sql = `insert into `
|
||||
}
|
||||
}
|
||||
|
||||
async function addVideoInfo(cover){
|
||||
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
addDownList,
|
||||
getDownList,
|
||||
|
Loading…
Reference in New Issue
Block a user