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.
[Errno 36] File name too long. -o templates don't support long names #813
Comments
|
This is a limitation of your filesystem (layer); typing
should result in a similar error message. By default, as a crude heuristic, youtube-dl limits titles (which typically account for the longest part in a filename) to 200 characters. What should we do when your filesystem does not support the name you want? Bear in mind that shortening is not a good idea in general, since that would break scripts that (rightfully) expect us not to silently change the file name. |
|
Isn't there any work around for this? I had a similar problem with a crunchyroll link |
|
@Xonshiz Specify a shorter output name using |
|
@TRox1972 I'm already following it. -o "/Output/ %(title)s %(format)s.%(ext)s |
|
@Xonshiz The title is too long to be included. You could e.g. use |
|
There is a parameter --restrict-filenames to get a shorter name could help. |
|
As it's using the python format , use '%(title).20s' to truncate a long title to 20 char limit. Info: string format |
|
actually, I recommend such alias for fast downloading on youtuble-dl:
the filename limited to 230 characters, enough length for like: errors occur if no such processing:
especially for those people in China mainland |
I think I've found a problem:
youtube-dl can't handle long templates.
Proof:
youtube-dl -o "02 Linear equations - 13 Evaluating expressions with unknown variables - 001 Evaluating expressions where individual variable values are unknown.mp4" TIwGXn4NalM
[youtube] Setting language
[youtube] TIwGXn4NalM: Downloading video webpage
[youtube] TIwGXn4NalM: Downloading video info webpage
[youtube] TIwGXn4NalM: Extracting video information
ERROR: unable to open for writing: [Errno 36] File name too long: '02 Linear equations - 13 Evaluating expressions with unknown variables - 001 Evaluating expressions where individual variable values are unknown.mp4.part'