修正重命名时集数的问题
parent
d947ba63c6
commit
c6d1b4455a
2
main.go
2
main.go
|
|
@ -69,7 +69,7 @@ func main() {
|
||||||
newName := fmt.Sprintf("%s%s", epdata.Title, path.Ext(filenames[i]))
|
newName := fmt.Sprintf("%s%s", epdata.Title, path.Ext(filenames[i]))
|
||||||
if len(params) > 1 {
|
if len(params) > 1 {
|
||||||
if match, _ := regexp.MatchString(".*%\\d*d.*", params[1]); match {
|
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 {
|
} else {
|
||||||
newName = fmt.Sprintf(params[1], newName)
|
newName = fmt.Sprintf(params[1], newName)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue