mikf / gallery-dl

Command-line program to download image galleries and collections from several image hosting sites
GNU General Public License v2.0
11.9k stars 976 forks source link

Fantia Extractor Settings #1506

Closed biznizz closed 3 years ago

biznizz commented 3 years ago

I'm very happy that an extractor for fantia (and Fanbox) was finally included with the program.

But quick question:

I've got my config for fantia like this:

"fantia":
        {
            "cookies": "C:\\Users\\USER\\cookies.txt",
            "cookies-update": true
        },

Running both the timeline and individual posts results in the creation of a fantia subfolder in my output (normal), but the folder has my test user's post id, not name, and it also puts all the pics and zip files into the id folder, without making subfolders for each individual post.

Is there a way to

  1. Get the user name of the "fanclub" instead of the user id to be written. (So like USERNAME instead of 7###)
  2. Get the option for subfolder creation for each individual post, to keep things neat & tidy.
thatfuckingbird commented 3 years ago

Yes, check out the directory option of extractors in the docs. You will probably want to use the fanclub_name or fanclub_user_name and the post_id variables, so something like "directory":["{category}", "{fanclub_name}", "{post_id}"]

biznizz commented 3 years ago

This seemed to work! Created subfolders and gave names to pics/zips with these settings.

"fantia":
        {
            "cookies": "C:\\Users\\USER\\cookies.txt",
            "cookies-update": true,
            "directory": ["{category}", "{fanclub_name}", "{post_id}"],
            "filename": "{filename}.{extension}"
        },

Closing, but hopefully anyone else curious will be able to find this.