修正了下载不完成的bug

This commit is contained in:
2023-08-22 15:00:31 +08:00
parent d7c34b7f26
commit 9a7ce30a6f
2 changed files with 26 additions and 1 deletions

View File

@@ -21,7 +21,11 @@ async function updateSeed(info, desc) {
if(ep.start == ep.end){
form.append("name", info.title.replace("Epxxx", "E" + info.ep))
}else{
form.append("name", info.title.replace("Epxxx", "E" + ep.start + "-" + "E" + ep.end))
if(ep.start == 1 && ep.end == vinfo.count){
form.append("name", info.title.replace("Epxxx", ""))
}else{
form.append("name", info.title.replace("Epxxx", "E" + ep.start + "-" + "E" + ep.end))
}
}
await setDownStateVid(info.vid,2)
form.append("small_descr", vinfo.subtitle)