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

Allow formatting of manga folder & filename #4

Closed
MokoJumbie opened this issue Jul 12, 2012 · 1 comment
Closed

Allow formatting of manga folder & filename #4

MokoJumbie opened this issue Jul 12, 2012 · 1 comment

Comments

@MokoJumbie
Copy link

I added a comment to your blog about this feature (http://nandaka.wordpress.com/2012/07/04/pixiv-downloader-20120704/#comment-1983)

It would be good to have some control over the folder and file names used for the manga entries. Presumably, it could use the same tags and formatting method used for file names.

Can I suggest two new tags for handling the page number part of the file name? How about:

  • %page_number% or %page_num% for page numbering using human-readable numbering (e.g. 1 of 7) starting at 1
  • %page_index% or %page_idx% for page numbering using pixiv's internal numbering with the index starting at 0

It would also be good to be able to specify whether to use leading zeros, with the number of zeros based on the total number of images. For 100 images using %page_number% the first image would be 001. Using %page_index% the first image of 100 would be 00 and the last, 99.

@Nandaka
Copy link
Owner

Nandaka commented Jul 24, 2012

Introduce filenameMangaFormat and added these meta format for the makeFilename.
-> %urlFilename% ==> the actual filename stored in server without the file extensions.
-> %page_big% ==> for manga mode, add big in the filename.
-> %page_index% ==> for manga mode, add page number with 0-index.
-> %page_number% ==> for manga mode, add page number with 1-index.

No leading zeroes in the page_index or page_number, windows still sort the files correctly :P

There is validation for filenameMangaFormat, if the format doesn't contains urlFilename or page_index or page_number then the format will be appended with page_index to make sure the filename is unique/correct page.

Updated in: 26924d6

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