Giter VIP home page Giter VIP logo

komga-cover-extractor's Introduction

Table of Contents

  1. Introduction
  2. Installation
  3. Usage
  4. Examples
  5. Future Goals
  6. Contributing
  7. License
  8. Support and Contact

1. Introduction

Komga Cover Extractor is a Python automation script that automates the detection and extraction of covers from zip, cbz, and epub files, providing users with high-resolution local covers within Komga.

2. Installation

To use the Komga Cover Extractor, follow one of the options below:

Docker (Recommended)

You can use the Docker image available here, which simplifies the setup process.

Manual Installation

If you prefer manual installation, follow these steps:

  1. Clone the repository: git clone https://github.com/zachstultz/komga-cover-extractor.git
  2. Install required Python packages: pip3 install -r requirements.txt
  3. (OPTIONAL) If you intend to use advanced RAR features, you may need to install unrar:
    • Linux: sudo apt-get install unrar
    • MacOS: brew install rar (requires brew) (untested)
    • Windows: Install UnRAR.dll from rarlab.com (untested)

3. Usage

python3 komga_cover_extractor.py [-h] [-p [PATHS [PATHS ...]]] -wh WEBHOOK1,WEBHOOK2,upto N [-c COMPRESS] [-cq COMPRESS_QUALITY]
  • -p or --paths: The path/paths to be scanned for cover extraction.
  • -wh or --webhook: The optional Discord webhook URL for notifications about changes and errors.
  • -c or --compress: Whether or not to compress the extracted cover images.
  • -cq or --compress_quality: The quality of the compressed cover images.

4. Examples

  • With Compression:

    python3 komga_cover_extractor.py -p "/path/to/manga" -p "/path/to/novels" -c "True" -cq "40"
  • Without Compression:

    python3 komga_cover_extractor.py -p "/path/to/manga" -p "/path/to/novels"

5. Future Goals

1. Transforming the script into a comprehensive manga/light novel manager with a wide range of features (in-progress).
2. Modularizing volume/chapter keyword regexes across the script (in-progress).
3. Improving documentation to make the tool even more user-friendly (in-progress).

6. Contributing

We welcome contributions! If you'd like to contribute to the Komga Cover Extractor, please follow our Contribution Guidelines

7. License

This project is licensed under the [MIT License](LICENSE).

8. Support and Contact

If you need help or want to report issues, please [create an issue](https://github.com/zachstultz/komga-cover-extractor/issues) on GitHub.

komga-cover-extractor's People

Contributors

shivamb25 avatar zachstultz avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

komga-cover-extractor's Issues

yet another issue

            Similarity between: "yamada kun seven witches" and "yamada kun seven witches" Score: 1.0 out of 1.0

    Required Folder Matching Percent: 90%
            Download Folder CBZ Percent: 100.0%
            Existing Folder CBZ Percent: 100.0%

            Download Folder EPUB Percent: 0%
            Existing Folder EPUB Percent: 0%

            Download Folder Chapter Percent: 0%
            Existing Folder Chapter Percent: 0%

            Download Folder Volume Percent: 100.0%
            Existing Folder Volume Percent: 100.0%

            Found existing series from cache: /home/ubuntu/manga/Yamada-kun and the Seven Witches

Traceback (most recent call last):
File "/home/ubuntu/komga/manga.py", line 6701, in
main()
File "/home/ubuntu/komga/manga.py", line 6679, in main
check_for_existing_series()
File "/home/ubuntu/komga/manga.py", line 3554, in check_for_existing_series
done = check_upgrade(
File "/home/ubuntu/komga/manga.py", line 2910, in check_upgrade
+ array_to_string(volume.volume_number, ",")
File "/home/ubuntu/komga/manga.py", line 2661, in array_to_string
return separator.join(array)
TypeError: sequence item 0: expected str instance, float found
โžœ ubuntu gdu mangaRss

I find two problems

It's my first time writing on github, so I apologize if I do something wrong. I find two problems with the script:

  1. Does not generate a cover.jpg for cbz files.
  2. Only works when there is a single cbz file in the path. When I use the script in a path with several .cbz files, it returns the error "IndexError: list index out of range".

I don't know if it's a script error or I'm doing something wrong. Greetings and thanks for developing this good idea.

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.