Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Padded page_index and page_number formatting options #1116

Closed
3 tasks done
NHOrus opened this issue Apr 19, 2022 · 3 comments
Closed
3 tasks done

[Feature] Padded page_index and page_number formatting options #1116

NHOrus opened this issue Apr 19, 2022 · 3 comments

Comments

@NHOrus
Copy link
Contributor

NHOrus commented Apr 19, 2022

Prerequisites

Description

Some image viewing software doesn't support natural sorting order - with parsing numerals and ordering pictures. It makes ordering of manga pages when viewing them - in pathological case - go 0; 1; 10; 100; 11; 12... which is disorienting

Sadly, I'm not always able to use sane image viewer, so pixivutil2-side workaround would be useful for this cases.

Please implement padded_page_index formatting that makes numbers go 000; 001; 002;... 009; 010 and so on.

@Nandaka
Copy link
Owner

Nandaka commented Apr 20, 2022

it should pad with 0 and start from 1 if you use %page_number%
https://github.com/Nandaka/PixivUtil2/blob/master/PixivHelper.py#L233

@Nandaka
Copy link
Owner

Nandaka commented Apr 20, 2022

example:
filenameMangaFormat = %searchTags%\%member_id% %member_token%\%R-18% %urlFilename% - %page_number% - %title%

result:
image

@NHOrus
Copy link
Contributor Author

NHOrus commented Apr 20, 2022

Oh. Maybe correct readme? There's nothing about padding in there right now

@Nandaka Nandaka closed this as completed Sep 24, 2022
Nandaka added a commit that referenced this issue Sep 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants