gallery-dl icon indicating copy to clipboard operation
gallery-dl copied to clipboard

WinError 123 when downloading from kemonoparty

Open Iamg1004 opened this issue 1 year ago • 5 comments

'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!

Iamg1004 avatar Jun 22 '24 01:06 Iamg1004

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.

mikf avatar Jun 22 '24 01:06 mikf

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.

Iamg1004 avatar Jun 22 '24 01:06 Iamg1004

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.

Twi-Hard avatar Jun 22 '24 11:06 Twi-Hard

Ahhh, gotcha. Thanks y'all!

Iamg1004 avatar Jun 22 '24 23:06 Iamg1004

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

a84r7a3rga76fg avatar Jun 23 '24 15:06 a84r7a3rga76fg