fix @zmwb->-zmwb

This commit is contained in:
theluyuan 2023-09-03 17:06:33 +08:00
parent 4d2f109e2b
commit b41a928040

View File

@ -55,12 +55,12 @@ async function reName(dinfo) {
} else { } else {
fbl = 480 fbl = 480
} }
let rname = `${vinfo.name}.${vinfo.rename}.${vinfo.year}.S${addZeor(vinfo.season)}E${addZeor(dinfo.title)}.WEB-DL.${fbl}p.${Video.Format}.${Audio.Format}@ZmWeb.mp4` let rname = `${vinfo.name}.${vinfo.rename}.${vinfo.year}.S${addZeor(vinfo.season)}E${addZeor(dinfo.title)}.WEB-DL.${fbl}p.${Video.Format}.${Audio.Format}-ZmWeb.mp4`
let state = fs.renameSync(dinfo.save + "/" + dinfo.title + ".mp4", dinfo.save + "/" + rname) let state = fs.renameSync(dinfo.save + "/" + dinfo.title + ".mp4", dinfo.save + "/" + rname)
let newPath = "" let newPath = ""
let tem = dinfo.save.split("/") let tem = dinfo.save.split("/")
tem.pop() tem.pop()
let seedName = `${vinfo.name}.${vinfo.rename}.${vinfo.year}.S${addZeor(vinfo.season)}.WEB-DL.${fbl}p.${Video.Format}.${Audio.Format}@ZmWeb` let seedName = `${vinfo.name}.${vinfo.rename}.${vinfo.year}.S${addZeor(vinfo.season)}.WEB-DL.${fbl}p.${Video.Format}.${Audio.Format}-ZmWeb`
tem.push(seedName) tem.push(seedName)
newPath = tem.join("/") newPath = tem.join("/")
return { return {
@ -70,7 +70,7 @@ async function reName(dinfo) {
oldPath: dinfo.save, oldPath: dinfo.save,
newPath: newPath, newPath: newPath,
seedName, seedName,
title: `${vinfo.rename} ${vinfo.year} S${addZeor(vinfo.season)}Epxxx WEB-DL ${fbl}p ${Video.Format} ${Audio.Format}@ZmWeb`, title: `${vinfo.rename} ${vinfo.year} S${addZeor(vinfo.season)}Epxxx WEB-DL ${fbl}p ${Video.Format} ${Audio.Format}-ZmWeb`,
Duration: Video.Duration, Duration: Video.Duration,
rname, rname,
ep: addZeor(dinfo.title), ep: addZeor(dinfo.title),