mirror of
https://github.com/Belphemur/CBZOptimizer.git
synced 2025-10-14 12:38:50 +02:00
perf: increase numbering padding
This commit is contained in:
@@ -25,10 +25,10 @@ func WriteChapterToCBZ(chapter *packer.Chapter, outputFilePath string) error {
|
|||||||
var fileName string
|
var fileName string
|
||||||
if page.IsSplitted {
|
if page.IsSplitted {
|
||||||
// Use the format page%03d-%02d for split pages
|
// Use the format page%03d-%02d for split pages
|
||||||
fileName = fmt.Sprintf("page_%03d-%02d%s", page.Index, page.SplitPartIndex, page.Extension)
|
fileName = fmt.Sprintf("page_%04d-%02d%s", page.Index, page.SplitPartIndex, page.Extension)
|
||||||
} else {
|
} else {
|
||||||
// Use the format page%03d for non-split pages
|
// Use the format page%03d for non-split pages
|
||||||
fileName = fmt.Sprintf("page_%03d%s", page.Index, page.Extension)
|
fileName = fmt.Sprintf("page_%04d%s", page.Index, page.Extension)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create a new file in the ZIP archive
|
// Create a new file in the ZIP archive
|
||||||
|
Reference in New Issue
Block a user