Hello.
My library is massive, and manually merging duplications was untenable. Therefore, I've added the ability for this plugin to merge all duplication groups through a menu action.
I searched around for how to contribute to this plugin, but didn't find any github or anything like that, so for now, my changes can be seen in this commit:
https://github.com/komali2/calibre-f...9881c368dbfd1d
It's not at all my intention to take any credit for the hard work of the primary developer/developers by uploading the plugin's source to my own github profile. Please let me know the best way I can issue a merge request for this change in the manner you prefer.
Usage:
(assuming the plugin with my change is installed. See
https://manual.calibre-ebook.com/cre...ugins.html#id2 if necessary)
- This is my first time touching the code of a Calibre plugin. Therefore, I highly recommend you backup your Calibre library.
- Click the "Find Duplicates" button on the main Calibre toolbar. A dialog box should display with lots of options for how you wish to search and display duplicates, thanks to the hard work of the primary developers. I stick with the default options, but whatever you choose, click "ok."
- After duplicates are found and grouped, click the small arrow next to the "Find Duplicates" button. A menu should display.
- In that menu, click "Merge All Groups." Remember, this option is only available if you are using the "Find Duplicates" plugin with my changes (available at github link above, or maybe when you're reading this, merged into the main plugin).
- For each of the duplicate groups, Calibre's native dialog boxes will pop up. That is to say, from here on out, the functionality is identical to if you manually selected several books and clicked "m" (or dragged one book onto another). The only difference is that you don't need to manually select books to merge. Try holding ALT and pressing "y" repeatedly to quickly verify each merge looks good to you, or, live dangerously and deselect the "show this confirmation again" checkboxes, resulting in the groups to all merge their books together automatically.
The result should be your various duplicate books each merged into a decently formatted single book. For example, I had:
- Betrayal by Aaron Allston. Tags: Sci Fi, Fiction. Formats: Mobi
- Betrayal by Aaron Allston. Tags: Sci Fi. Formats: Mobi
- Betrayal by Aaron Allston. Tags: . Formats: Epub
And after merging, I had
* Betrayal By Aaron Allston. Tags: Sci Fi, FIction. Formats: Mobi, Epub
Note that if you have two books the same FORMAT (epub / mobi / etc), the format of the first book in the list will be the format that survives the merge. This is due to Calibre's implementation of merging books. For example, if you had
- Betrayal by Aaron Allston. Tags: . Formats: Mobi
- Betrayal by Aaron Allston. Tags: . Formats: Mobi
If the first book's metadata indicated the given title and author, but had literally a blank .mobi file, and the second book had the proper .mobi, the result would be a single book with a blank .mobi file (I believe). This, among other reasons, is why
you should definitely backup your Calibre library before doing a mass merge!