mikf / gallery-dl

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

[gofile] 401 Unauthorized #6308

Open Nezumi-exe opened 1 week ago

Nezumi-exe commented 1 week ago

I'm trying to batch download files from gofile, but I keep getting 401 unauthorized errors. After checking the config it appears that the website token "abcde" is invalid. Where can I find this new website token?

mikf commented 1 week ago

The current gofile website token is 4fd6sg89d7s6 and can be found in https://gofile.io/dist/js/alljs.js by searching for wt:. gallery-dl will fetch the current value automatically if you don't explicitly specify it in your config.

Nezumi-exe commented 1 week ago

The current gofile website token is 4fd6sg89d7s6 and can be found in https://gofile.io/dist/js/alljs.js by searching for wt:. gallery-dl will fetch the current value automatically if you don't explicitly specify it in your config.

That's odd. Gallery-dl doesn't fetch the website token for me. It works when I call it manually in command prompt however.

gallery-dl https://gofile.io -o website-token=4fd6sg89d7s6

I tried adding it to my config, but it seems to skip over it. Not sure why.

        "gofile":
        {
            "website-token": "4fd6sg89d7s6",
        },
mikf commented 1 week ago

Sounds like you are using a very outdated version (check gallery-dl --version). The latest websitetoken code is from v1.26.8. 77abcf5a 3433481d

I tried adding it to my config, but it seems to skip over it. Not sure why.

Because "website-token": "4fd6sg89d7s6",} is invalid JSON. You need to remove the comma , before }.