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.
--write-thumbnail truncates filename with certain output template #11506
Comments
|
Well it's not a bug. You shouldn't omit %(ext)s in output templates.
|
Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2016.12.20. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Description of your issue, suggested solution and other information
Notice the filename of the thumbnail.
The issue is that when a YouTube title string contains any periods (46th of the ASCII character set), for example version numbers or an ellipsis, the thumbnail download routine fails to write the full file name correctly with that output template I'm using. It works fine with the default output template.
It truncates after the last period of the title string. So for example if the uploader had used a title like "My new machine 2.0.1" that would end in "My new machine 2.0.jpg" instead of "My new machine 2.0.1 (xxxxxxxxxxx).jpg" and "Oh my... oh my... oh dear" would end in "Oh my... oh my...jpg" instead of "Oh my... oh my... oh dear (xxxxxxxxxxy).jpg".
Note that I omitted downloading the video file because it was unnecessary. The video file name is ok. As far as I have noticed the truncation only happens with the thumbnail file, but it may also happen with other files youtube-dl saves.