修正重命名时集数的问题

master
kuiki 2019-04-10 10:59:53 +08:00
parent d947ba63c6
commit c6d1b4455a
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ func main() {
newName := fmt.Sprintf("%s%s", epdata.Title, path.Ext(filenames[i]))
if len(params) > 1 {
if match, _ := regexp.MatchString(".*%\\d*d.*", params[1]); match {
newName = fmt.Sprintf(params[1], i+1, newName)
newName = fmt.Sprintf(params[1], epdata.Index, newName)
} else {
newName = fmt.Sprintf(params[1], newName)
}