mirror of
https://github.com/celogeek/go-comic-converter.git
synced 2025-05-25 00:02:37 +02:00
Merge pull request #9 from yoanhg421/patch-1
Update filename to show total parts when using size limit.
This commit is contained in:
commit
afc3355e0d
@ -89,8 +89,8 @@ go-comic-converter -profile KS -input ~/Download/MyComic.[CBZ,ZIP,CBR,RAR,PDF] -
|
||||
```
|
||||
|
||||
If you have more than 1 file the output will be:
|
||||
- ~/Download/MyComic PART_01.epub
|
||||
- ~/Download/MyComic PART_02.epub
|
||||
- ~/Download/MyComic Part 01 of 03.epub
|
||||
- ~/Download/MyComic Part 02 of 03.epub
|
||||
- ...
|
||||
|
||||
The ePub include as a first page:
|
||||
|
@ -247,7 +247,7 @@ func (e *ePub) Write() error {
|
||||
ext := filepath.Ext(e.Output)
|
||||
suffix := ""
|
||||
if totalParts > 1 {
|
||||
suffix = fmt.Sprintf(" PART_%02d", i+1)
|
||||
suffix = fmt.Sprintf(" Part %02d of %02d", i+1, totalParts)
|
||||
}
|
||||
|
||||
path := fmt.Sprintf("%s%s%s", e.Output[0:len(e.Output)-len(ext)], suffix, ext)
|
||||
|
Loading…
x
Reference in New Issue
Block a user