add 发种与下载种子 移动到做种文件夹
This commit is contained in:
@@ -36,10 +36,12 @@ async function addVideoInfo(cover){
|
||||
}
|
||||
|
||||
// 获取当前剧集是否下载完成
|
||||
// todo 多集连发
|
||||
async function getMediaState(vid){
|
||||
let sql = `select * from download where vid=? and state!=1`
|
||||
let list = await getAll(sql,vid)
|
||||
return !list.length
|
||||
// let sql = `select * from download where vid=? and state!=1`
|
||||
// let list = await getAll(sql,vid)
|
||||
// return !list.length
|
||||
return true
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
|
||||
@@ -8,8 +8,8 @@ async function addSub(info){
|
||||
if(list.length != 0){
|
||||
return "订阅已存在"
|
||||
}
|
||||
let sql = `insert into VideoInfo(name,rename,skip,desc,url,subtitle,img,year,time,subTime,enable,season,sid,count,imdb) values(?,?,?,?,?,?,?,?,?,${new Date().getTime()},1,?,?,?,?)`
|
||||
await run(sql,info.name,info.rename,info.skip,info.desc,info.url,info.subtitle,info.img,info.year,info.time,info.season,info.sid,info.count,info.imdb)
|
||||
let sql = `insert into VideoInfo(name,rename,skip,desc,url,subtitle,img,year,time,subTime,enable,season,sid,count,imdb,type,tags) values(?,?,?,?,?,?,?,?,?,${new Date().getTime()},1,?,?,?,?,?,?)`
|
||||
await run(sql,info.name,info.rename,info.skip,info.desc,info.url,info.subtitle,info.img,info.year,info.time,info.season,info.sid,info.count,info.imdb,info.type,info.tags)
|
||||
}
|
||||
|
||||
// 获取所有订阅 (不包括已完成)
|
||||
|
||||
Reference in New Issue
Block a user