fix 获取ep
This commit is contained in:
@@ -51,8 +51,9 @@ async function getMediaState(vid){
|
||||
* @returns {{start:string,end:string}} start开始集数,end结束集数
|
||||
*/
|
||||
async function getDownEp(vid){
|
||||
let sql = `select * from download where vid=? and state!=2`
|
||||
let sql = `select * from download where vid=? and (state=3 OR state=0)`
|
||||
let list = await getAll(sql,vid)
|
||||
console.log(vid,list)
|
||||
if(list.length == 0){
|
||||
let sql = `select * from download where vid=? and state=1`
|
||||
let list = await getAll(sql,vid)
|
||||
|
||||
Reference in New Issue
Block a user