This commit is contained in:
theluyuan 2023-08-09 12:28:28 +08:00
parent 3c131fc481
commit 5ec1f25d2a

View File

@ -38,7 +38,7 @@ async function addVideoInfo(cover){
// 获取当前剧集是否下载完成 // 获取当前剧集是否下载完成
// todo 多集连发 // todo 多集连发
async function getMediaState(vid){ async function getMediaState(vid){
let sql = `select * from download where vid=? and state!=1` let sql = `select * from download where vid=? and (state=0 or state=3)`
let list = await getAll(sql,vid) let list = await getAll(sql,vid)
return !list.length return !list.length
// return true // return true