Skip to content

Pad zeroes in path placeholders #141

@FibreTTP

Description

@FibreTTP

The idea

An option to pad chapter numbers with a user specified amount of zeroes should be added to path placeholders.

The default behaviour should also be changed to automatically pad with as many zeroes as digits of chapters (i.e., three zeroes if there are more than 100, but less than 1000 chapters).

Why this feature should be added to the app ?

Chapter placeholder {chapter.chapter} returns the chapter number without any padding, leading to incorrect sorting if the application doing the sorting does not do so smartly:

$ find . -type f -iname 'saki*':

./Saki c1.epub
./Saki c10.epub
./Saki c11.epub
./Saki c2.epub
./Saki c4.epub
./Saki c40.epub
./Saki c41.epub
./Saki c5.epub
./Saki c50.epub
./Saki c51.epub

This also occurs with {chapter.volume}.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions