This tool can be used to batch convert a folder that has multiple series of comics or manga, as long as it follows the structure, structure which I used as it fit my use case when switching manga reading apps, and to reduce the number of files on my tablet.
At the same time, it was also a quick and easy project to try flet!
Very simple UI, you select a root folder having the required structure, and press the convert button. It will then start converting the chapters from folders with images into CBZ files. You also get a loading bar, showing the total number of chapters/issues in the whole root, and the current progress.
Enjoy!
The script expects you to chose a root folder. This folder should have a sub-folder for each series. Inside those, there should be chapters or issues in subfolder containing the images of that specific chapter/issue. Maybe the diagram bellow illustrates better.
- all_series_folder
|--> - series 1
|--> - ch.01
| - 001.png
| - 002.png
|--> ...
| - 047.png
|--> - ch.02
| - 001.png
|--> ...
| - 043.png
...
|--> - ch.87
| - 001.png
|--> ...
| - 054.png
|--> - series 2
|--> - ch.001
| - 001.png
|--> ...
| - 023.png
...
|--> - ch.857
| - 001.png
|--> ...
| - 029.png
If the structure is followed everything should work fine. Another feature I added, if a chapter folder starts with _ it will be removed from the cbz file, else the name of the files is same as the chapter/issue folder, and it is saved in the series folder.
Don't think any further development will be done as I doubt I'm ever gonna need this again but oh well :^)
