Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 07-01-2026, 10:01 PM   #1
gmwestrup
Junior Member
gmwestrup began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jul 2026
Device: none
Duplicate Organizer — a calibre plugin

Tidy up a messy calibre library by collapsing scattered copies of the same book into one clean record — combining all their formats, the cover, and every scrap of metadata under a single entry.

It only ever deletes true exact duplicates, keeps anything that genuinely differs, and always shows you a full review plan before changing a single thing.

How it finds duplicates
Any rule can be toggled. Books linked by any rule are grouped together.

Title + Author
Same title and same author(s), ignoring case and spacing.

Close title match
Ignores subtitles, punctuation, and a leading “The/A”, so different-format copies group together even when their metadata differs slightly.

Identifier
Same ISBN, Google, Amazon, DOI, or any other identifier.

File content
Identical files by SHA-256 hash — the most precise check.

What it does with each group
  • Keeps one master copy — by default the one with the most formats (or newest / oldest, your choice).
  • Copies in every missing format — EPUB, MOBI, PDF, and the rest — so all formats of a book end up together under the author.
  • Merges all metadata — cover image, series, publisher, dates, rating, languages, comments, tags, identifiers, and custom columns. Empty fields are filled and tags/identifiers unioned, without overwriting what's already set.
  • Deletes only exact duplicates. A copy that shares a title but has genuinely different content in the same format is kept and given a numbered title (e.g. “The Hobbit (2)”), so nothing is ever lost.
  • Safe by design

Always shows a full, itemized review dialog before touching anything. Uncheck any group to skip it.

Deletions go through calibre's normal recoverable path, not permanent removal.

Run it on your whole library or just the books you've selected.
Works with calibre 6+ (including 9.x). Configure matching rules and behavior under
Preferences → Plugins → Duplicate Organizer.

Now it merges everything into the kept book:

All formats the kept copy is missing.
Cover image — pulled from a duplicate if the kept book has none.
All metadata — series, publisher, dates, rating, languages, comments, plus tags and identifiers (unioned), and any custom columns. Empty fields get filled; existing values on the kept book are never overwritten.
One thing worth knowing: it fills empty fields rather than replacing populated ones, so the "keep the copy with the most formats" master stays authoritative for anything it already has. If you'd rather a specific copy's metadata always win, I can add that as an option.
Attached Files
File Type: zip Duplicate Organizer.zip (25.4 KB, 16 views)
gmwestrup is offline   Reply With Quote
Old 07-02-2026, 03:42 PM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 84,019
Karma: 153695583
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
How do you merge in multiple copies of the metadata when they differ? For example, different covers.
JSWolf is online now   Reply With Quote
Advert
Old 07-02-2026, 05:38 PM   #3
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,855
Karma: 64181416
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by JSWolf View Post
How do you merge in multiple copies of the metadata when they differ? For example, different covers.
Merge does not stomp existing.
Merge is mostly for differing (file) formats. If the cover is different, it probably IS NOT the exact same book (different editions)

If you want both sets comments, the MANUEL copy paste. If you want more, then don't merge.
theducks is offline   Reply With Quote
Old 07-02-2026, 07:43 PM   #4
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 84,019
Karma: 153695583
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Can you have a list of the proposed duplicates? Can the proposed duplicates be SHA-256 checked to see if they are the same?
JSWolf is online now   Reply With Quote
Old 07-03-2026, 04:56 PM   #5
gmwestrup
Junior Member
gmwestrup began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jul 2026
Device: none
Quote:
Originally Posted by JSWolf View Post
How do you merge in multiple copies of the metadata when they differ? For example, different covers.
It takes one cover, not all of them combined. Current behavior: if the kept ("master") book has no cover, it grabs the first cover it finds among the duplicates being merged in. If the master already has a cover, that one is kept as-is and the others are discarded (there's no such thing as "combining" multiple cover images into one — that's not really an operation that makes sense for a book cover).

If you want different behavior — e.g. always prefer the highest-resolution cover among all copies, regardless of whether the master already has one — I will add that.
gmwestrup is offline   Reply With Quote
Advert
Old 07-03-2026, 06:04 PM   #6
gmwestrup
Junior Member
gmwestrup began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jul 2026
Device: none
Quote:
Originally Posted by JSWolf View Post
Can you have a list of the proposed duplicates? Can the proposed duplicates be SHA-256 checked to see if they are the same?
It does list the proposed changes. There are also diffrent selection now in prefrences to make changes. I also just added a few more details and options. Version 2 uploaded.

Use this also with the find Duplicates plug in. If you do that you can select which one to process.
gmwestrup is offline   Reply With Quote
Old 07-03-2026, 06:13 PM   #7
gmwestrup
Junior Member
gmwestrup began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jul 2026
Device: none
Version 2.

This is version 2 added more preferance selections.
Attached Files
File Type: zip Duplicate Organizer.zip (30.3 KB, 3 views)
gmwestrup is offline   Reply With Quote
Old Yesterday, 05:05 AM   #8
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 84,019
Karma: 153695583
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
I'll give this a try when I get some spare time.
JSWolf is online now   Reply With Quote
Old Yesterday, 10:24 AM   #9
Wiggo
Leftutti
Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.
 
Wiggo's Avatar
 
Posts: 641
Karma: 3671119
Join Date: Feb 2019
Location: Bavaria
Device: iPad Pro, Kobo Libra 2
Am I right in assuming that the merging happens automatically?
Wiggo is offline   Reply With Quote
Old Yesterday, 11:32 AM   #10
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 84,019
Karma: 153695583
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
If I have two duplicates based on and exact author and title match, can there be an option to delete the copy with the earlier date? Thanks.
JSWolf is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Streamer - RSVP Speed Reader plugin for Calibre npapadacis Plugins 6 04-24-2026 03:00 AM
Updating plugin fails because plugin file is in use by Calibre? ownedbycats Calibre 1 12-03-2022 08:34 PM
Duplicate IDs in Calibre enidad2 Library Management 2 01-01-2018 12:25 AM
Calibre 1.0 - Duplicate formats icallaci Library Management 12 08-27-2013 09:44 AM
Duplicate detection plugin kiwidude Development 262 05-02-2011 04:00 PM


All times are GMT -4. The time now is 05:29 AM.


MobileRead.com is a privately owned, operated and funded community.