gvellut / jncep

Command-line tool to generate EPUB files for J-Novel Club pre-pub novels
GNU General Public License v3.0
43 stars 11 forks source link

[Feature Request] Folder Cleanup / Completed Only #49

Open infaerina opened 6 months ago

infaerina commented 6 months ago

I run this periodically to keep a cache of up to volumes I fall behind on when I get swamped. However, I find manually cleaning up the old files (_Parts_1_to_2, all the way to _Parts_1_to_X, then _Complete) to be an extra step that may be implemented in the code.

I am recommending the following additional options / features in the config:

Excellent work! These are but minor things that I could play around with in a fork when I am back in a couple weeks.

gvellut commented 6 months ago

Thank you for your feedback.

To only download Completed _(very rarely a complete volume is downloaded, but isn't tagged as Complete)

There is an option --whole-onlyfor that in the current development version (not yet released): https://github.com/gvellut/jncep/issues/43

To clean up old versions (AKA when Part_1_to_4 is in the output folder, and Part_1_to_5 is generated, remove Part_1_to_4)

This could be added as an option but there is now an option in the development version to change the output file name, so the name may not always have a Part_x suffix. But, if restricted to the standard case, I guess it could work easily enough.

To default tracking at Volume 1 Part 1 instead of latest part

There is an option called --beginning: https://github.com/gvellut/jncep/issues/33 . In the development version, the same parameter has also been added to the track add command to make it consistent, but it has not been released yet.