mikf / gallery-dl

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

WinError 123 when downloading from kemonoparty #5776

Open Iamg1004 opened 1 week ago

Iamg1004 commented 1 week ago

'Sup guys I'm trying to download entire kemono artists' archives, but I'm getting this error with a specific post, why could that be? Here's my kemono config:

    "kemonoparty":
    {
            "metadata": true,
            "directory": ["{category}", "{service}", "{username} {user}", "{date:%Y-%m-%d} {id} {title}"],
            "filename": "{filename}.{extension}",

            "postprocessors": [{
                "name": "metadata",
                "event": "post",
                "filename": "content.txt",
                "format": "{content}\n"
            }]
    },

(Btw, it's downloading to the D: drive, it's specified in the base-directory part of the config)

Here's the error: C:\Users\ignac>gallery-dl "https://kemono.su/patreon/user/19687329/post/102650101" [kemonoparty][error] Unable to download data: OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: '\\\\?\\D:\\gallery-dl\\kemonoparty\\patreon\\Girl_In_Dungarees 19687329\\2024-06-18 102650101 [F4TF] Kiss away my pain [GFE] [Reverse Comfort] pretend [Virgin] speaker with vague mentions of bad first time [Loving] lots of [Kissing] [L-Bombs] [Caring] [Fingering] [Cunnilingus] [Girlcock] [Handjob] [Grinding] [Nipple Sucking] [Penetrative] sex [Multiple Speaker Orgasms]\\' (Not what I'm trying to download per-se, but it's stopping the entire archive from downloading).

And here's the link: https://kemono.su/patreon/user/19687329/post/102650101

And yes, it's with that specific post, as the one before it downloads no problem, and so have another artists' archives before.

Any help would be welcome!

mikf commented 1 week ago

This post's title alone is longer than 255 characters and {date:%Y-%m-%d} {id} {title} exceeds this limit even more. Restrict the length with {title[:200]} or similar.

Iamg1004 commented 1 week ago

Is there any way to exceed the 255~260 limit on windows? I even have the long path registry enabled, but it doesn't seem like it worked.

Twi-Hard commented 6 days ago

The long path option lets you have full paths longer than 255 characters. I'm pretty sure it's enabled by default in Windows 10 and 11. A single file or folder name can't be longer than that though. It's a limitation of the filesystem and there's no way around it.

Iamg1004 commented 6 days ago

Ahhh, gotcha. Thanks y'all!

a84r7a3rga76fg commented 5 days ago

You're already saving the metadata, seems redundant to have {title}