]> jfr.im git - yt-dlp.git/commit - README.md
Improve output template internal formatting
authorpukkandan <redacted>
Mon, 3 May 2021 17:06:03 +0000 (22:36 +0530)
committerpukkandan <redacted>
Thu, 6 May 2021 14:58:58 +0000 (20:28 +0530)
commite625be0d10d96a20702d630dcc88e3269554e172
tree73f96152c871708a9c1430dc205fdd7089f144ab
parent12e73423f1df25bfe2fa00434b2688dd7dd9d227
Improve output template internal formatting
* Allow slicing lists/strings using `field.start:end:step`
* A field can also be used as offset like `field1+num+field2`
* A default value can be given using `field|default`
* Capture all format strings and set it to `None` if invalid. This prevents invalid fields from causing errors
README.md
yt_dlp/YoutubeDL.py
yt_dlp/postprocessor/execafterdownload.py
yt_dlp/utils.py