- Specify the directory with the manga and the resulting one in the
config.py; - Run
main.pyand enter the name of the directory with the required manga; - Wait until the script finishes running.
The script takes the names of all directories in the specified location and then sorts them in ascending order, using only the number at the beginning of the folder name, ignoring any letters that come after.
Then, starting from the first chapter (its folder), the script begins to sort the pages, separating the file extension from the name, using only the number.
After these steps, each page is packed into a cbz archive until all pages are finished, after which the work moves on to the next chapter. This continues until all chapters are finished.
Warning
For the most accurate and predictable results, all folders and page files should be named with a number.
- re
- pathlib
- zipfile