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.
FR: Output formatting to omit NA #13326
Comments
|
Are you interesting in that future? Have it worth to implement it and provide pull request? |
|
I'd love this feature implemented too. |
Please follow the guide below
Before submitting an issue make sure you have:
What is the purpose of your issue?
Description of your issue, suggested solution and other information
You allow formatting file name of output by templating.
And according to doc, quoting:
If I use it like
-o '%(playlist)s.%(playlist_index)s %(title)s.%(ext)s'in config and said download single video, not in playlist, I got file named similar to:NA.NA Viktor Gamov on In-Memory Data Grids.mkvIt is wired.
First simple workaround I found is configure also:
--exec 'rename "NA.NA " "" NA.NA* || [ $? -eq 4 ] #{}'(and please note {} goes after comment mark because otherwise we got error on rename if we save multiple files for json and description).It solve only partial of problem. Files named as expected, but when I start download multiple files - all will be re-downloaded from start, without continue!
My suggestion introduce option to embed python code as formatter something like:
It is desired and flexible solution, but will require invent wheel for parsing.
Otherwise possible solution just allow provide lambda function to fully create such string in python style of lambda. Idea borrowed from offlineimap configuration offered.
For example:
Obviously
argshould bedictand contain keys as described in documentation.