mikf / gallery-dl

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

Setting Furaffinity Filename Structure In gallery-dl.config #630

Closed biznizz closed 4 years ago

biznizz commented 4 years ago

Hi, just was hoping for a bit of help.

In my config, I only have the two cookies, "a" and "b" in my FA extractor, and I was hoping to set the extractor so that the images would have the same file name as they would by singularly downloading them from the site.

Downloading an image from the site gives a standard file name that's basically "{submission number}.{artist-name}.{extension}", but with no file name suggestion, gallery rips images as "{submission number} {filename}.{extension}".

Would greatly appreciate help in writing a "filename": structure that would include all three bits of info in the singular filename. That way, pics I rip with gallery would exist nicely with past pics I've downloaded directly.

kattjevfel commented 4 years ago

you can just set "filename": "{filename}.{extension}", that's what I've done and it works just as expected.

katt@main ~ » gallery-dl https://www.furaffinity.net/view/35253983/
[furaffinity][info] Solving Cloudflare challenge
/mnt/jupiter/Temp/gallery-dl/furaffinity/marwinhp/1583143046.marwinhp_marwin_hpixel.png
biznizz commented 4 years ago

you can just set "filename": "{filename}.{extension}", that's what I've done and it works just as expected.

That's strange. It's still literally doing the same structure that it did before: "{submission number} {filename}.{extension}", not the "{submission number}.{username}_{filename}.{extension}" that you have, which is what I want.

Mind if you post your whole FA config structure so I can try that out?

kattjevfel commented 4 years ago

Sure, but it really is just that and the cookies, here's my config (with the other extractors removed)

{
    "extractor": {
        "base-directory": "/mnt/jupiter/Temp/gallery-dl/",
        "furaffinity": {
            "filename": "{filename}.{extension}",
            "cookies": {
                "a": "<nope>",
                "b": "<nope>"
            }
        }
}
biznizz commented 4 years ago

Sure, but it really is just that and the cookies, here's my config (with the other extractors removed)

{
    "extractor": {
        "base-directory": "/mnt/jupiter/Temp/gallery-dl/",
        "furaffinity": {
            "filename": "{filename}.{extension}",
            "cookies": {
                "a": "<nope>",
                "b": "<nope>"
            }
        }
}

That worked. Guess I was missing something in the structure that made it not work. Thank you!