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

Only add a page number to a file or directory name if there are more than one pages, slides, media and so on in one post #1074

Closed
arisboch opened this issue Oct 21, 2020 · 3 comments

Comments

@arisboch
Copy link

Is there a way to only add a page number to a file or directory name if the page number is either existent (not "none" or similar) or more than one?

@mikf
Copy link
Owner

mikf commented Oct 23, 2020

Not at the moment. At least not in general.

@TestPolygon
Copy link

+1.

Also I want to specify an optional prefix/posfix, that will be added only if there is a page number.
For example, in PixivToolkit I can use such pattern {id}#_{pageNum}p#.
For 1 image I get: 11223344.png, for multiple: 11223345_0p.png, 11223345_1p.png.

@mikf
Copy link
Owner

mikf commented Dec 3, 2022

As long as there is a count metadata field or similar, you can use conditional filenames (4cf4043).

For example

"filename": {
    "count > 1": "{id}_{num}.{extension}",
    ""         : "{id}.{extension}",
}

@mikf mikf closed this as completed Dec 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants