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 09-27-2020, 07:04 AM   #751
Richard1970
Junior Member
Richard1970 began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Sep 2020
Device: Kobo Libra H20
Hello, I´m new to Calibre and this plugin.
I´ve run the plugin to binary compare my library and I´ve got returned a list of 30.000 or more hits. One way or another I´ve marked them without deleting them and now I want to run this compare again and it returns zero matches. So how do I unmark my results?

When this problems gets fixed I want to run the compare again and I only want to delete ofcourse 1 match of the double books. But I get after the compare the full list with all the matches. I want to select with Ctrl-A only one of the doubles. Is this possible and how is it done?

Thank you very much.
Richard1970 is offline   Reply With Quote
Old 09-27-2020, 06:13 PM   #752
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
On Windows, selecting multiple lines in the calibre book list is the same as the file manager - I'd be surprised if that wasn't true of MacOS and Linux.

Ctrl+M will toggle Book List Marks, see Keyboard shortcuts

You can add the Mark Books toolset to toolbars and menus in Preferences.

BR
BetterRed is offline   Reply With Quote
Old 10-01-2020, 06:51 PM   #753
Richard1970
Junior Member
Richard1970 began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Sep 2020
Device: Kobo Libra H20
Thanks for your reply.

But it is not exactly what I´m struggling with.

When I now run "Find Book Duplicates Similar Title and Author Matching", I get a long list with entries that are all double (over 10.000 books are double at this moment because I´ve imported some large databases and the names of the books were apparently not exactly the same for Calibre to merge them).

All results from the run are in couples but I want to delete only one of the two double entries out of the database. So I have a list of 20.000 books and I want to select of these only 10.000 books to delete.
Is there a possibility to select only 1 entry of all doubles and delete them all in one click?
Richard1970 is offline   Reply With Quote
Old 10-01-2020, 07:20 PM   #754
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,196
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
When using the binary compare, you can check the option "When doing binary compare, automatically delete duplicate formats".

Note that this will only delete the book files (epub, ... etc) but will keep the entries in calibre (because it might contain metadata that some people would want to keep).

So, for entries that have only one book format, when calibre deletes the duplicate from them, they will be empty (i.e have no formats, just metadata). You can filter these using this calibre search:

Code:
formats:false
Then, you can delete them, but only if you are sure you don't need the metadata form these empty entries. It is always a good idea to backup your library first just in case, especially when trying something for the first time.

For entries that have more than one format, I'm afraid you will have to delete the entries one by one.
capink is offline   Reply With Quote
Old 10-01-2020, 07:26 PM   #755
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: 79,758
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Richard1970 View Post
Thanks for your reply.

But it is not exactly what I´m struggling with.

When I now run "Find Book Duplicates Similar Title and Author Matching", I get a long list with entries that are all double (over 10.000 books are double at this moment because I´ve imported some large databases and the names of the books were apparently not exactly the same for Calibre to merge them).

All results from the run are in couples but I want to delete only one of the two double entries out of the database. So I have a list of 20.000 books and I want to select of these only 10.000 books to delete.
Is there a possibility to select only 1 entry of all doubles and delete them all in one click?
But can you be sure that all of those matches are the same eBook? Why not do a binary compare and see how many are the exact same eBook. Then do a smilar compare. But don't just delete willy nilly if you can.
JSWolf is offline   Reply With Quote
Old 10-02-2020, 07:27 AM   #756
Richard1970
Junior Member
Richard1970 began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Sep 2020
Device: Kobo Libra H20
Thanks Capin and JSWolf.

That formats:false is something I have to try.
Richard1970 is offline   Reply With Quote
Old 10-02-2020, 07:34 AM   #757
odinokij
Enthusiast
odinokij began at the beginning.
 
Posts: 29
Karma: 10
Join Date: Jul 2012
Device: Kindle 3
Quote:
Originally Posted by odinokij View Post
I have released a new update of the duplicates++ plugin (based on the original Find Duplicates plugin v.1.6.3 by Grant Drake). It includes:

- Finding duplicates by series and authors
- New algorithms fzzEx (extended fuzzy) for titles/series and authors
- Accelerated "Mark current group as exempt" (uncheck option "autosave new exemptions" and use menu "Save new exemptions". The new exemptions are also automatically saved if the end of the duplicated list is reached)
- Several bugs are fixed


The link is the same:
https://1drv.ms/u/s!AobKqg_eHGvlicteuckLgFlxmqE2zw


I hope it may be as useful for you as it's for me

Odinokij.



Hi there,
I've updated the version of the plugin Duplicates++ in order to make it compatible with Python 3 so it works on calibre v5.
The new version has also been updated from its original "Find duplicates" plugin v1.7.2 to its new version 2.0.2
The link to the new version of Duplicates++ plugin is:

https://1drv.ms/u/s!AobKqg_eHGvlicte...jr7lg?e=bTMKRD


Kind regards,
Odinokij
odinokij is offline   Reply With Quote
Old 10-02-2020, 09:27 AM   #758
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: 79,758
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by odinokij View Post
Hi there,
I've updated the version of the plugin Duplicates++ in order to make it compatible with Python 3 so it works on calibre v5.
The new version has also been updated from its original "Find duplicates" plugin v1.7.2 to its new version 2.0.2
The link to the new version of Duplicates++ plugin is:

https://1drv.ms/u/s!AobKqg_eHGvlicte...jr7lg?e=bTMKRD


Kind regards,
Odinokij
If you are not going to PM kiwidude to see if it's OK to take over, I suggest you create a new thread with your plugin. If it's as god as you say, then it should be available from Calibre., not some cloud storage.
JSWolf is offline   Reply With Quote
Old 10-07-2020, 10:54 AM   #759
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,196
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
I've been trying to work on the issue of this plugin missing up the user's search preference as described in this thread. This happened to me in the past, but I'm not able to replicate it now. Can anyone give me steps on how to replicate this behavior?
capink is offline   Reply With Quote
Old 10-07-2020, 04:49 PM   #760
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by capink View Post
I've been trying to work on the issue of this plugin missing up the user's search preference as described in this thread. This happened to me in the past, but I'm not able to replicate it now. Can anyone give me steps on how to replicate this behavior?
I put the button back on the search bar, its easier to understand now because as well as the Blues Bar (red striped) it it also shows the word "Highlight" or "Filter".

I think it's these options:

Click image for larger version

Name:	Screenshot 2020-10-08 074237.jpg
Views:	300
Size:	76.1 KB
ID:	182534

IIRC the problem is, if the PI stashes the current value when should it restore the stashed value? The PI has no natural "I'm done with using this" state.

And, there's another 'bug': if books are excluded in Find Duplicates their id's are stashed in the database. If there's anything stashed when calibre starts those books are Marked and a gold pin shows on the left -- which is confusing. The plugin needs to be reworked to avoid use of the same mechanism as the Mark books tool.

The code of the now deprecated Temp Marker PI might assist in 'fixing' this. In essence the built-in Mark books tool replaced the Temp Marker PI.

BR
BetterRed is offline   Reply With Quote
Old 10-07-2020, 07:52 PM   #761
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,196
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
Quote:
Originally Posted by BetterRed View Post
And, there's another 'bug': if books are excluded in Find Duplicates their id's are stashed in the database. If there's anything stashed when calibre starts those books are Marked and a gold pin shows on the left -- which is confusing. The plugin needs to be reworked to avoid use of the same mechanism as the Mark books tool.
BR
I have already fixed that issue in a version that I will release soon. The plugin used to mark all exemptions at startup or library change. Now, it only marks them once the user chooses the option to display exemptions, and remove the marks afterwards.


Quote:
Originally Posted by BetterRed View Post
IIRC the problem is, if the PI stashes the current value when should it restore the stashed value? The PI has no natural "I'm done with using this" state.
BR
I still cannot reproduce this behavior using either option. I tried both and the plugin always reverts back to my original search preference. I have a general idea of where to look in the code, but without being able to replicate the problem it is difficult to solve. I need some very specific steps like:
  1. What is your original search preference before using the plugin (is it highlight books or restrict the book list to results)
  2. When you use the plugin, which option to tick (all group at once vs. one group at a time)
  3. How do you exit the duplicate search. There are many ways:
    • By pressing clear duplicate result from the plugin drop down menu.
    • By pressing the restriction immediately to the left of the search bar.
    • By pressing the escape key.
    • By resolving all duplicates through merge, delete or exemption
  4. Any other steps necessary to replicate this behavior

ُ
Edit: I tried combinations of all the above with no avail.

Last edited by capink; 10-07-2020 at 07:57 PM.
capink is offline   Reply With Quote
Old 10-07-2020, 07:59 PM   #762
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,062
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
BR the PI run's, then Marks the results, then it terminates (at least for one of its modes), to the user.
so there can be no I am done (reviewing and deleting) if that mode is allowed (of coarse, that is the one I use )
theducks is offline   Reply With Quote
Old 10-07-2020, 10:44 PM   #763
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by theducks View Post
BR the PI run's, then Marks the results, then it terminates (at least for one of its modes), to the user.
so there can be no I am done (reviewing and deleting) if that mode is allowed (of coarse, that is the one I use )
Once I put the button back on the search bar the issue hasn't bothered me.

I think we're saying the same thing

IIRC:-- If Preferences->Searching->Highlight search results… setting is unchecked and you set the FD option to 'highlight', FD sets the Preferences->Searching->Highlight search results… setting to checked and leaves it in that state. And there seems to be no natural place in the PI usage to restore the setting.

If the PI stashed the previous value some place where the regular search could access it, then if the stashed value wasn't empty it could restore the setting and flush the stashed value.

EDIT: See ↓ ↓ ↓

BR

Last edited by BetterRed; 10-07-2020 at 11:08 PM.
BetterRed is offline   Reply With Quote
Old 10-07-2020, 11:06 PM   #764
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by capink View Post
I have already fixed that issue in a version that I will release soon. The plugin used to mark all exemptions at startup or library change. Now, it only marks them once the user chooses the option to display exemptions, and remove the marks afterwards.
Great!


Quote:
Originally Posted by capink View Post
I still cannot reproduce this behavior using either option. I tried both and the plugin always reverts back to my original search preference. I have a general idea of where to look in the code, but without being able to replicate the problem it is difficult to solve. I need some very specific steps like:
  1. What is your original search preference before using the plugin (is it highlight books or restrict the book list to results)
  2. When you use the plugin, which option to tick (all group at once vs. one group at a time)
  3. How do you exit the duplicate search. There are many ways:
    • By pressing clear duplicate result from the plugin drop down menu.
    • By pressing the restriction immediately to the left of the search bar.
    • By pressing the escape key.
    • By resolving all duplicates through merge, delete or exemption
  4. Any other steps necessary to replicate this behavior

ُ
Edit: I tried combinations of all the above with no avail.
Hmmm - I don't use FD much these days - actually at all. My earlier comments were based on memory.

I just did some tests and like you I couldn't make it misbehave. Maybe someone else (like you ) already fixed it, or maybe Kovid has changed the base in some devious some way.

Maybe theducks could do some tests or someone else who uses the PI. It would be good to be able to unstick the stickies.

BR
BetterRed is offline   Reply With Quote
Old 10-08-2020, 06:04 AM   #765
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,196
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
Quote:
Originally Posted by BetterRed View Post
Great!



Hmmm - I don't use FD much these days - actually at all. My earlier comments were based on memory.

I just did some tests and like you I couldn't make it misbehave. Maybe someone else (like you ) already fixed it, or maybe Kovid has changed the base in some devious some way.

Maybe theducks could do some tests or someone else who uses the PI. It would be good to be able to unstick the stickies.

BR
It still happens every now and then randomly. The problem is I always notice it after the fact. Whenever I try reproduce that behavior, it acts normally.
capink is offline   Reply With Quote
Reply

Tags
cross library duplicates, in library duplicates


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] View Manager kiwidude Plugins 416 07-16-2025 05:35 PM
[GUI Plugin] Quality Check kiwidude Plugins 1251 07-07-2025 09:13 PM
[GUI Plugin] Generate Cover kiwidude Plugins 861 06-21-2025 11:51 AM
[GUI Plugin] Open With kiwidude Plugins 404 02-21-2025 05:42 AM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 12:27 PM


All times are GMT -4. The time now is 05:56 PM.


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