suzumiyahifumi / Fantia-Downloader-tampermonkey

This script will append a download button to the Fanita Image Box for downloading whole image in a ZIP file.
63 stars 9 forks source link

Add HHMM to Date / Use = in file name / unify post & boxTitle names #20

Open Rsfinder opened 1 month ago

Rsfinder commented 1 month ago

i have been using this downloader for a long time. thanks for a good tool. i have a few personal requests regarding file names.

  1. use HHMM(+SS) for {postDate} yyyymmdd  ex. https://fantia.jp/posts/1723273 → 20230121 1735

  2. symbol... I especially want to incorporate “=” into the name format.

  3. unify the name formatting of the post image and the image in the boxTitle  ex. https://fantia.jp/posts/1723273

my name format ({uid} {postId}) {postTitle} {boxTitle} {user} ({imgIndex:1}) {postDate}

post    (440126 1723273)  創作らくがきまとめ    まったくモー助  (post)  20230121.jpeg
boxTitle (440126 1723273)  創作らくがきまとめ  創作らくがきまとめ  まったくモー助  (1)  20230121.jpeg

post... the absence of {imgIndex:1} creates extra space. i would like to unify this as follows

post    (440126 1723273)  創作らくがきまとめ  まったくモー助  (post)  20230121.jpeg
boxTitle (440126 1723273)  創作らくがきまとめ  創作らくがきまとめ  まったくモー助  (1)  20230121.jpeg

these are all very personal requests. If it's too difficult, please go through with it. i will continue to use them and will support them as much as possible.

(i can understand japanese, so replies don't have to be in Eng

suzumiyahifumi commented 1 month ago

Thank you for your reply and intimate. I am not Japanese, so this reply will be in Eng.

For 1. You can apply yyyymmdd hhMM to {postDate}, There is a input area write yyyymmdd for default value in the setting center, change it value.

For 2. About the symbol “=”, I will test and consider this format.

For 3. I got it, this bug will be fix in next version.