mikf / gallery-dl

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

I can't seem to find an example of how you're supposed to config kemono. #1525

Closed left1000 closed 3 years ago

left1000 commented 3 years ago

I looked at all the example .conf files but none of them have an example for kemono, so, I'm not really sure what the conf is supposed to look like to support kemono.

https://github.com/mikf/gallery-dl#configuration going here usually helped me enough to get any of the other more popular sites working.

Skyofflad commented 3 years ago

Kemono doesn't have unique configs. The only setting you really need is cookies (to bypass ddos protection). As an example, this is my config for kemono:

   "kemonoparty":
        {
            "filename": "{id} {title} {filename}.{extension}",
            "cookies": "~/gallery-dl/kp-cookies.txt",
            "archive": "~/gallery-dl/kp-archive.sqlite3",
            "postprocessors": [{
                "name": "metadata",
                "mode": "custom",
                "filename": "{id} {title}.txt",
                "directory"       : "Descriptions",
                "content-format"  : "{content}\n"
            }]
        },
Vishvamitra commented 3 years ago

@left1000 Like @Skyofflad has written, you're supposed to export the cookies of your browser then copy-paste the _ddg1 and _ddg2 values into your gallery-dl config file. The major problem about kemono isn't the config though: it simply doesn't work since the files can't be downloaded. Screenshot_20210503_142329

lodx-xd commented 3 years ago

@Vishvamitra kemono has been working fine for me, this error as far as I understand is from their end and not from gallery-dl. When this error happens even when you go directly to the site you can't open the full file too or take too much time, Kemono in the moment is very unstable since they went offline to delete files days ago.

Twi-Hard commented 3 years ago

For me, a few random files here and there work fine but most don't. It used to download everything properly.

left1000 commented 3 years ago

What's the format for ddg cookies though?

        "cookies": {
            "__ddg1": "correct",
    "__ddg2": "correct"
        },

doesn't work for example..... all the other sites I use have exact examples in the instructions on this git, but kemono support is new, so I don't know the exact format for inputing the cookie data.

hmm, maybe the broken part is "archive": "~/gallery-dl/kp-archive.sqlite3", actually? I don't actually ever use archive in gallery-dl

edit: yep, it works now! thanks!

        "cookies": {
            "__ddg1": "correct",
    "__ddg2": "correct"
        },

can't believe it was that easy, whew!