banner
Moraxyc

Moraxyc's Rhapsody

Passion Forever! 永远热爱!
twitter
telegram
github
medium
discord server

My local comic management solution

Komga

You may be a victim of genuine products

This statement is a fallacy, but it has become an unavoidable fact in the mainland ACG market: even if you have a membership and subscribe to manga, what you see is still incomplete and edited content.

At the same time, there are also situations in the domestic ACG market where there is no introduction/no copyright/no mature content. With my language level, it is obviously impossible for me to read raw Japanese manga, and the feeling of reading mature content on Tieba or other forums is like a bowl of fried rice without eggs...

As someone who believes in immersive experiences, I also cannot accept the pop-up ads and terrible experiences that occasionally appear on pirate manga websites, with suffocating layouts.

It seems that local manga has become the last resort, and the only problem is where to find the sources? Where to download from?

Downloading Manga#

This question tests the capabilities of internet information indexing and screening analysis, and generally speaking, a manga title followed by words like zip rar jpg epub can quickly screen out downloadable manga files.

But sadly, these resources are usually stored on BT/Baidu Cloud. As for BT, it goes without saying that the speed is so slow that it is despairing. As for Baidu Cloud... it's like a black hole.

Fortunately, there are some software programs that can crawl and store manga sources. The one I use is Tachiyomi, which supports installing a large number of plugins and crawling and downloading them locally, saving them in cbz format. This is undoubtedly very friendly for managing local manga.

Komga Management#

Komga is your media server for comics, manga, BD, and magazines.

How to run:

Install and run Komga on your computer or NAS.
Add libraries by content type and let Komga do the rest.
Use the web interface or any compatible client.
Enjoy reading!

Komga is like a Calibre specifically for storing manga, and its performance and interface surpass Calibrealthough not as powerful as Calibre

It is recommended to use docker-compose to set it up.

docker-compose#

version: '3.3'
services:
  komga:
    image: gotson/komga
    container_name: komga
    volumes:
      - type: bind
        source: ./config
        target: /config
      - type: bind
        source: ./data
        target: /data
    ports:
      - 8080:8080
    user: "1000:1000"
    environment:
      - KOMGA_LIBRARIES_SCAN_STARTUP=true
      - TZ=Asia/Shanghai
    restart: unless-stopped

The structure of this docker-compose file is as follows:

└── komga
    ├── docker-compose.yml
    ├── data
    │   └── library
    └── config
        ├── artemis
        ├── database.sqlite
        └── lucene

data is the data storage, and the first-level directory created inside it represents the library.

Komga can be further modified through environment variables, see the documentation for details.

File Formats#

Komga supports CBZ/CBR, EPUB, and PDF formats. For manga, I personally think cbz1 is the simplest and most compatible format.

The recommended file structure is as follows:

.
└── library
    ├── Manga I Recommend
    │   ├── Chapter 1.cbz
    │   └── Chapter 9.cbz
    └── Kaguya-sama: Love is War
        ├── Chapter 01.cbz
        └── Chapter 02.cbz
3 directories, 4 files

library represents the name of the library, the next level distinguishes different manga, and the next level stores the manga files.

If the manga downloaded from BT/cloud storage is a folder with images inside, you can use the shell to batch compress the subdirectories into cbz files.

for dir in */; do zip -r "${dir%/}.cbz" "$dir"; done

Scraping Metadata#

Komga is great, but it does not support online metadata scraping. It can only search for metadata from local files such as file names/comicinfo.xml.

However, although Komga itself does not support it, the community has produced scripts for metadata scraping.

BangumiKomga is a Python script that retrieves metadata from Bangumi and fills it in.

For detailed usage, please refer to the script's README. Since the success rate of automatic recognition for scraping is very low, it is strongly recommended to find the corresponding manga on Bangumi first, paste the link into the "Links" section of the Komga series, tag it as cbl, and after configuring it, run python processMetadata.py in the directory to almost perfectly add posters and information to the manga.

Reading#

Tachiyomi has an official Komga plugin, just fill in the instance address/user password, and you can use it smoothly, the effect is simply amazing 🥰

Komga also supports other OPDS2 protocol readers.


PS:
I previously set up a doujinshi manga library using Calibre, but Calibre's cross-platform compatibility is indeed much worse. Just finished watching the first episode of Tui Zi and wanted to read the manga, but I was afraid that the Bilibili manga would be edited, so I updated my manga management solution.

Akasaka! Give me back Hoshino Ai! I have lost my love forever

😎👌 👉 😭

Footnotes#

  1. That is, a zip file with the extension changed to cbz.

  2. That is, Open Publication Distribution System

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.