Closed Bubsy-26d closed 2 years ago
it seems gallery-dl is sending in a weirdly-formatted directory structure \?\Z:\YT Channels\HD Mixtapes
Prepending a path with \\?\
is perfectly valid, but a lot of tools throw an error when they get a path like this.
Initially this path modification was done to get around the 260 character limit for filesystem paths, but it shouldn't be all that necessary anymore with Win10 now having native support for long paths.
I'll just add an option to disable this behavior.
Interesting, I've never seen that before. But an option to disable sounds like it would handle this, thanks!
These are called "extended-length path[s]"
… the maximum length for a path is MAX_PATH, which is defined as 260 characters To specify an extended-length path, use the "\?\" prefix. For example, "\?\D:\very long path".
(https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation) (https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file#win32-file-namespaces)
Anyway, with commit https://github.com/mikf/gallery-dl/commit/7f30a0d7a78e0e51fde2405952b9bc9da2330897 you can disable them by setting path-extended
to false
I'm attempting to use the aria2c downloader for yt-dlp to increase download speeds, but am running into download failures as it seems gallery-dl is sending in a weirdly-formatted directory structure that aria2c doesn't know what to do with.
When calling yt-dlp through gallery-dl, it attempts to download to the directory "\\?\Z:\YT Channels\HD Mixtapes\", while using yt-dlp directly uses "Z:\YT Channels\HD Mixtapes\" as its directory.
From the verbose gallery-dl output:
From the aria2c logs:
Compared to the aria2c logs of using yt-dlp directly:
I'm seeing this behavior no matter what drive or directory I download to. The yt-dlp native downloader seems to handle the passed-in directory... kind of. I've been having issues where the first time I attempt downloading a file it's 50-50 whether yt-dlp will error out on attempting to download the first fragments. Deleting the files it created and re-downloading usually works the 2nd time. I don't have any settings for
directory
,base-directory
, or any extractor-specific output directory settings in my gallery-dl config, nor in my yt-dlp config.