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.
output filename formats don't work as expected #26953
Comments
|
It works exactly the same as C's |
|
Did you fix the docs? No. I don't believe this should be closed. Here:
|
|
That was my request after all: please document how it works |
Checklist
Description
Quoth the youtube-dl docs:
The basic usage is not to set any template arguments when downloading a single file, like in youtube-dl -o funny_video.flv "https://some/video". However, it may contain special sequences that will be replaced when downloading each video. The special sequences may be formatted according to python string formatting operations. For example, %(NAME)s or %(NAME)05d. To clarify, that is a percent symbol followed by a name in parentheses, followed by formatting operations.
Quoth the linked python string formatting operations:
's' String (converts any Python object using str()). (6)
6 If the object or format provided is a unicode string, the resulting string will also be unicode. The precision determines the maximal number of characters used.
If "maximal number of characters" can be used on strings, please document how it works since Python hasn't bothered. (I'm a C programmer, not a Python programmer.)