Git Product home page Git Product logo

cbz-merger's Introduction

Merge multiple CBZ/CBR files into one.

Usage:

python3 main.py [-r result_filename] folder_name

cbz-merger's People

Contributors

razumau avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

cbz-merger's Issues

Packing often interrupted by PermissionError on Windows

Got this error log when packing Berserk manga:

Failed on Berserk\Chapter 329.cbz
Traceback (most recent call last):
  File "S:\Media\Manga\cbz_combiner.py", line 109, in <module>
    merge(folder=args.folder, result_filename=args.result_name)
  File "S:\Media\Manga\cbz_combiner.py", line 98, in merge
    unpack_files(cbzs, cbz_folder)
  File "S:\Media\Manga\cbz_combiner.py", line 65, in unpack_files
    unpack_single_file(cbz_file, cbz_folder)
  File "S:\Media\Manga\cbz_combiner.py", line 57, in unpack_single_file
    rmtree(temp_folder)
  File "C:\Python39\lib\shutil.py", line 740, in rmtree
    return _rmtree_unsafe(path, onerror)
  File "C:\Python39\lib\shutil.py", line 622, in _rmtree_unsafe
    onerror(os.rmdir, path, sys.exc_info())
  File "C:\Python39\lib\shutil.py", line 620, in _rmtree_unsafe
    os.rmdir(path)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'temp_Chapter 329'

What I assume is happening is that packing was too slow thus windows threw an interrupt. Any recommendations to overcome this will be great,

Packs the whole temp folder into the .cbz, not just its contents

For some reason the whole "cbz_merger_temp" folder gets placed in the final .cbz archive instead of just its contents. This causes conversion programs like Kindle Comic Converter to not be able to process the archive into other file formats. (.mobi in my case, to be able to read the comics on a Kindle device.

Would it be possible to get a revised version that doesn't create the temp folder inside the .cbz but just places all the separate merged folders in the .cbz root?

So the path inside the final .cbz would be something like "Comic.cbz\Chapter_01\Page_01.jpg" instead of "Comic.cbz\cbz_merger_temp\Chapter_01\Page_01.jpg"

How to use?

Hi there, I'm not familiar with python. How do I use this script?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.