Skip to content

Calculate, write, and verify image hashes even if packed into chapter, volume, or single archives #142

@FibreTTP

Description

@FibreTTP

The idea

Looking at the code at a high-level (and inspecting the download.db database), it seems image hashes are only saved and verified with the image server if using the raw formats.

The downloads database should be expanded to write all the information it currently does with raw formats (specifically, the filename and hash of each image) when writing archives.

Why this feature should be added to the app ?

This should allow the detection and subsequent update of modified images.

Even if a page is edited by a group after release, running mangadex-dl --save-as <archive_format> again will not update the page within an archive.

I would like to run mangadex-dl on a timer (i.e., cron), and have it update all images that change. I also like having chapters packed in archives (epub, cbz).

Ideally, mangadex-dl should also be able to write another file "version" if changes are detected: If Page 003 in Chapter 02 is changed, another file titled "<title> c02 (v2).cbz" containing "page003 (v2).png" should be written.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions