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

Furaffinity cookies: not enough values to unpack (expected 7, got 1) #906

Closed ee6f8317 closed 4 years ago

ee6f8317 commented 4 years ago

OS : Ubuntu 20.04 LTS , gallery-dl downloaded with the snap command Hi, I put this command in the terminal = gallery-dl --cookies "/media/PicMelo/cookies.txt" --input-file /media/PicMelo/furTest.txt -d /media/PicMelo

, the cookies.txt is like this = { "extractor": { "furaffinity": { "include": "gallery,scraps", "filename": "{filename}.{extension}", "cookies": { "a": "[COOKIE A]", "b": "[COOKIE B]" } }, } }

But when putting the commande, it show this = [furaffinity][warning] cookies: not enough values to unpack (expected 7, got 1)

And don't download the NSFW pictures.

kattjevfel commented 4 years ago

If I'm looking at this right it looks like you're supplying an entire config inside cookies.txt instead of just a Netscape formatted cookies file. That'd be why.

ee6f8317 commented 4 years ago

How should the cookies.txt be structured for furaffinity? I looked at the readme but I didn't found how to to it

biznizz commented 4 years ago

You don't need a cookies.txt for furaffinity. Your extractor settings

"furaffinity":
        {
            "include": "gallery,scraps",
            "filename": "{filename}.{extension}",
            "cookies": {
                "a": "[COOKIE A]",
                "b": "[COOKIE B]"
            }
        },

can work just fine in you configuration file.

And if you don't want to download any NSFW pictures... I think you have to disable it within your profile settings, then export any new "a" and "b" cookies into the conf/json file.

mikf commented 4 years ago

You are trying to use a configuration file as if it were a cookies.txt file.

Either load it with --config instead of --cookies, or move it to one of the locations listed here to have gallery-dl load it automatically.