openzim / youtube

Create a ZIM file from a Youtube channel/username/playlist
GNU General Public License v3.0
45 stars 26 forks source link

Support period substitution in `--zim-file` #99

Closed rgaudin closed 4 years ago

rgaudin commented 4 years ago

Currently, we statically use whatever is provided as --zim-file as file path for the ZIM output (zimwriterfs argument).

It's uncommon to set it though, as users use --name (which is mandatory) and that also sets the ZIM file to {name}_{period}.zim.

With this user has control over the filename but can't have a dynamic zim filename that includes the period (YYYY-MM).

We should thus allow the substitution of {period} in --zim-file to satisfy all those conditions.