Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
youtube-dl isn't explicit when hitting the Windows max path length #23154
Comments
|
@dstftw Can you stop closing my issues without even reading them? You already closed my Feature Request because you didn't understand what I was asking, can you at least read a major bug report for Windows users, it's not even a duplicate. |
|
Also please link the issues of which this is a duplicate. |
|
Stop posting duplicates and ambiguously interpretable issues and I won't close them. |
Verbose log
Description
If the path length is longer than 256 character, youtube-dl will trigger
ERROR: unable to open for writing: [Errno 2] No such file or directoryIt took me more than a half hour to understand that it was the problem. I was trying to fix my scripts and got the error, I thought something else was wrong but in the end it was just youtube-dl not being explicit about the error, it would be nice if it could at least say to check for the path length.
To reproduce the problem:
Using this video: https://youtube.com/watch?v=kn4AR7CbluE named "I THOUGHT I wanted this... - Razer Blade Pro 17 Review"
Using the output format
--output "%%(title)s - %%(uploader)s - %%(upload_date)s/%%(title)s - %%(uploader)s - %%(upload_date)s.%%(ext)s"If youtube-dl is ran in a path with more than 77 characters the error is triggered
So:
Broken : C:\abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuv
Trigger:
ERROR: unable to open for writing: [Errno 2] No such file or directory: 'I THOUGHT I wanted this... - Razer Blade Pro 17 Review - Linus Tech Tips - 20191119\\I THOUGHT I wanted this... - Razer Blade Pro 17 Review - Linus Tech Tips - 20191119.f313.webm.part'Working : C:\abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstu