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.
Failing to write the file after the download completed #541
Comments
|
I assume it has something to do with the |
|
No matter, weird but still funny error this is. You should put the URI in single quotes since it contains the |
|
And yes, you should customize the title, since there is yet no general |
|
Ok... The way I understand it, there is no way around the But the first problem remains I guess. Can we try something like warning the user before starting the download in cases like this? It'll be way better than waiting for the download to finish and then realize that the file cannot be written. |
|
You can just remove the ampersand, since it's not useful to get to the video. Quoting the whole URL will also work, but you'll have to do one or the other, as this has to do with the way the shell interprets the command before sending it to youtube-dl. As for the issue with the semicolon, as @Plaque-fcc said, you should customize the title yourself. Using -l will give you the literal title, the whole point of it being to get the title as is, even if it creates an invalid filename. If you want to get a more "safe" filename, you can use, for example, You can also use -t instead of -l: in this case, youtube-dl will use the title of the video as the filename but will filter it before to remove invalid characters. It's an easier way if you don't want to have to customize the title. The -o and -t options aren't failproof since there's a lot of filesystems with a lot of differing restrictions regarding characters than can be used or not, but it should work most of the time, while the -l will always give you trouble for videos like this given that its intended purpose is to give you a literal title, without any filtering or checking. |
|
OK, I think this boils down to the usual "quote the url, always" (as everything you type on the shell) and use That being said, @phihag please let's alias |
Command:
Error:
This BTW has created an empty file named
Fluent 2012in the folder.Also if the download is interrupted for some reason, it is unable to resume the download later. (Fails with the same error)
(Windows)