mikf / gallery-dl

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

[gallery-dl] update problem, [Kemono Party] Conf File Parsing Error #2192

Closed v0sc closed 1 year ago

v0sc commented 2 years ago

This is, unfortunately, a two-part issue, and as both are potentially linked (was unable to use gallery-dl on Kemono Party even before the parsing error despite 'updating' it), I put them both in one post.

  1. First, and easiest to explain, is the problem I've had updating gallery-dl; using the command line entry for updating via PIP, as well as attempting to reinstall the most recent version of gallery-dl both show that they've succeeded. When I query what version I'm running, however, it still states I'm running 1.17.4.

Neither rebooting my PC nor uninstalling, then reinstalling have solved this, and I'm not sure what else I can try to get gallery-dl to actually update.

  1. I have also attempted to set up the gallery-dl.conf file with the necessary cookies and such to work on Kemono Party, but gives a parsing error. What I have is this: "kemonoparty": { "cookies":{ "C:/Users/-Username-/Desktop/galtest/KP Cookies.txt" "__ddg1": "DDG1 code here", "__ddg2": "DDG2 code here", "session": "Session code here" } }

What I am given is : [config][warning] Could not parse 'C:\Users-Username-\gallery-dl.conf': Expecting ':' delimiter: line 317 column 17 (char 7124)

Line 317, column 17 is right before "__ddg1": "DDG1 code here", and when I put the colon there it simply reads another parsing error that was caused from ADDING it.

I am very much confused by both of these problems, and am unsure how to solve either. Any help would be very much appreciated.

Fukitsu commented 2 years ago

Try uninstalling Python or manually deleting gallery-dl. It is located at: C:\Users\User\AppData\Local\Programs\Python[your-python-version\Scripts. As for the issue with your config file you should either use a text file with your cookies or explicitly put your cookies in your config file.

Either like this:

"kemonoparty": 
{   
    "cookies": "C:/Users/-Username-/Desktop/gallery-dl.conf/KP Cookies.txt"
}

or like this:

"kemonoparty":
{
    "cookies":
    {
        "__ddg1": "DDG1 code here", 
        "__ddg2": "DDG2 code here", 
        "session": "Session code here"
    }
}
Skyofflad commented 2 years ago

Quote from the kemono mod:

Also, If you are using any downloaders, you should no longer need cookies, so feel free to delete them if you'd like.

I checked, gallery-dl works normally without kp cookies

mikf commented 2 years ago

I checked, gallery-dl works normally without kp cookies

Since version v1.18.4 (#1779, bb6a1309427337c4821de18d14aec967a535ebb4)

v0sc commented 2 years ago

I have manually deleted the gallery-dl.exe file in the C:\Users\User\AppData\Local\Programs\Python[your-python-version\Scripts folder, and have uninstalled/reinstalled Python. I also was finally able to find the errant gallery-dl.exe version. Apparently I had installed it using Chocolatey, because trying to use the standalone installer, or the command line install via pip, didn't work at all.

I will update this on whether or not it fixed my issue with downloading from KP or not, though this now brings a whole new issue; how to properly update this via using the command line...or why it wouldn't install on its' own.