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 10-08-2020, 06:35 AM   #766
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by capink View Post
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.
I made it happen with the following steps:
  1. Choose "Find book duplicates"
  2. Choose the option "Show all groups at once with highlighting"
  3. Quit calibre without clearing the search bar
  4. Restart calibre
The search remains on "Highlight".

You can probably fix this by implementing the "shutting_down" method and restoring the preference.
chaley is offline   Reply With Quote
Old 10-08-2020, 08:09 AM   #767
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 chaley View Post
I made it happen with the following steps:
  1. Choose "Find book duplicates"
  2. Choose the option "Show all groups at once with highlighting"
  3. Quit calibre without clearing the search bar
  4. Restart calibre
The search remains on "Highlight".

You can probably fix this by implementing the "shutting_down" method and restoring the preference.
I thought I had all scenarios of how to exit the duplicates results covered, but I never thought of this simple one

I fixed this as you suggested by implementing shutting_down method

I also tested by switching libraries without clearing duplicates, but that does not lead to the same problem. So, hopefully this solves it for good.
capink is offline   Reply With Quote
Advert
Old 10-08-2020, 10:07 AM   #768
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
Version 1.7.6

Version 1.7.6
Update: Advanced Mode: Add support for saving and restoring match rules.
Update: Advanced Mode: Add option to control sorting of books in duplicate groups. Requested by @tanjamuse
Update: Advanced Mode: Use calibre's template dialog for adding and editing templates.
Update: Advanced Mode: Mark first and last books in each duplicate group: "first_duplicate", "last_duplicate"
Update: Mark records with deleted formats in binary search as "deleted_binary_duplicate"
Update: Option to export duplicate groups to json file. For advanced mode, the sorting of books is retained in the json file.
Fix: Mark exemptions only when showing them and remove the marks afterwards.
Fix: Restore state if the user exits calibre with the duplicates restriction still on. Thanks to @chaley
Fix: Remember last sort in library view and restore it back.


With this new version, instead of repeating steps every time you invoke the advanced mode, you can save the match rules and restore in one click. You can also export these match rules for backup or for importing in other calibre libraries.

The new sort feature (a suggestion by @tanjamuse) allows you to control the sorting of books in duplicate groups. It is also complemented with marking the first book in the group as "first_duplicate" and the last book in the group as "last_duplicate". So if for example, if you want to show all the books in the group(s) except the last book(s) you can type the following in the search bar:

Code:
not marked:last_duplicate

N.B whether the above search applies to all groups or to the current group depends on the current search mode (either highlight or restrict results). To make it easier to switch between these two modes, follow the steps in this post.




Quote:
WARNING: Sometimes you might have one book belonging to two different duplicate groups. Because of the way this plugin marks duplicates, one of these two groups which have the same book might have its sort (and consequently, first_duplicate and last_duplicate marks) messed up. So, it is better to first deal manually with these groups. These groups can be shown by the following search:

Code:
marked:entangled_group
And if you want to show the books that belong to more than one group you can use this search:

Code:
marked:entangled_book
Another thing you can do with the sort is to use templates instead of columns. Say for example you want to sort the duplicate groups by the number of formats each record has, you can use this template in the sort dialog to achieve this:

Code:
{formats:count(,)}

If the above is not enough and you want more control of how to handle duplicate books, there is an option to export duplicate ids to json file, that can be later fed to calibre-debug (or a shell) script to handle them according to the needs of individual users. For the advanced mode, the exported json file retains the sort order specified by the user in the sort dialog.


Finally, for people who use the binary compare with automatic removal of duplicates, they can find the records with automatically deleted formats by typing this search:

Code:
marked:deleted_binary_duplicate
Attached Thumbnails
Click image for larger version

Name:	1.png
Views:	375
Size:	131.8 KB
ID:	182565   Click image for larger version

Name:	2.png
Views:	376
Size:	115.1 KB
ID:	182566   Click image for larger version

Name:	3.png
Views:	391
Size:	123.0 KB
ID:	182567   Click image for larger version

Name:	4.png
Views:	371
Size:	67.1 KB
ID:	182568   Click image for larger version

Name:	5.png
Views:	368
Size:	100.7 KB
ID:	182569  

Last edited by capink; 10-09-2020 at 04:24 AM. Reason: remove attached plugin. A newer version attache to a later post
capink is offline   Reply With Quote
Old 10-08-2020, 10:53 AM   #769
compurandom
Wizard
compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.
 
Posts: 1,012
Karma: 500000
Join Date: Jun 2015
Device: Rocketbook, kobo aura h2o, kobo forma, kobo libra color
Wow! That's a lot of really useful features added.

Let me request one more... Frequently when I find duplicate books I don't want to delete them, I want to merge them. So, maybe a merge all option, or a mode where a keystroke can merge the duplicates and then move on to the next group?

Also, I'm thinking the entangled groups stuff is important enough that maybe the searches should be stuck in a menu entry, in a way to remind people that they're there.

Last edited by compurandom; 10-08-2020 at 11:37 AM.
compurandom is offline   Reply With Quote
Old 10-08-2020, 08:51 PM   #770
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 compurandom View Post
Let me request one more... Frequently when I find duplicate books I don't want to delete them, I want to merge them. So, maybe a merge all option, or a mode where a keystroke can merge the duplicates and then move on to the next group?
I am against adding any auto-delete or auto-merge functionality to this plugin, because it gives new users extra rope to hang themselves with, and any damage done is going to be irreversible. You and others might benefit from such feature, but it can do inadvertent damage to others. And this is why I added the export feature for.

Quote:
Originally Posted by compurandom View Post
Also, I'm thinking the entangled groups stuff is important enough that maybe the searches should be stuck in a menu entry, in a way to remind people that they're there.
I don't think this is very common situation for most users. I am still weighing how to deal with it and whether it is worth any extra effort, given how uncommon I think it will turn out of most users. Maybe feedback here from others on how frequently they run into this situation can change this.
capink is offline   Reply With Quote
Advert
Old 10-09-2020, 02:01 AM   #771
compurandom
Wizard
compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.
 
Posts: 1,012
Karma: 500000
Join Date: Jun 2015
Device: Rocketbook, kobo aura h2o, kobo forma, kobo libra color
Quote:
Originally Posted by capink View Post
I am against adding any auto-delete or auto-merge functionality to this plugin, because it gives new users extra rope to hang themselves with
I certainly can see that, not sure I'd ever use an automerge.
But like I said, an easy way to merge the current group and move on would be of great value.

(...entangled group searches...)
Quote:
I don't think this is very common situation for most users.
I suggest burying it in a submenu. That way, it's there for people who wander through the menus to find.
compurandom is offline   Reply With Quote
Old 10-09-2020, 02:17 AM   #772
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,724
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Mark the books that need to merged and do it with the metadata edit merge tool when you're done with FD.

BR
BetterRed is online now   Reply With Quote
Old 10-09-2020, 04:23 AM   #773
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
Here is a version with a couple more fixes for restoring previous gui state.

Last edited by capink; 10-14-2020 at 06:34 AM. Reason: remove attachment. version 1.8.0 releaseed
capink is offline   Reply With Quote
Old 10-09-2020, 05:45 PM   #774
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,724
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@capink

Can I suggest the updated plugin be released as Version 1.8 or even 2.0.

BR
BetterRed is online now   Reply With Quote
Old 10-09-2020, 07:16 PM   #775
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
@capink

Can I suggest the updated plugin be released as Version 1.8 or even 2.0.

BR
Yes. I was thinking about something like that. I don't really know when to bump the minor version, and when to bump the major version? Is there any guidelines I can refer to?
capink is offline   Reply With Quote
Old 10-09-2020, 08:30 PM   #776
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 7,071
Karma: 91577715
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by capink View Post
Yes. I was thinking about something like that. I don't really know when to bump the minor version, and when to bump the major version? Is there any guidelines I can refer to?
It's arbitrary. Use your own judgement.
jhowell is offline   Reply With Quote
Old 10-09-2020, 08:48 PM   #777
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,054
Karma: 60358908
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 capink View Post
Yes. I was thinking about something like that. I don't really know when to bump the minor version, and when to bump the major version? Is there any guidelines I can refer to?
Bumping Major usually is because:
Not backwards (with the older main app) Compatibility changes

Significant UI changes, where the old guide is just really wrong or would be confusing.

How about,the new guard took over and want to create a definitive Start point
theducks is offline   Reply With Quote
Old 10-10-2020, 07:06 AM   #778
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 theducks View Post
Bumping Major usually is because:
Not backwards (with the older main app) Compatibility changes

Significant UI changes, where the old guide is just really wrong or would be confusing.

How about,the new guard took over and want to create a definitive Start point
Quote:
Originally Posted by jhowell View Post
It's arbitrary. Use your own judgement.
Thanks for the input. The changes are incremental and backward compatible. The main code written by kiwidude is almost untouched (except for few fixes), and still drives the functionality of the plugin including the new additions.

If all goes well, I will release as 1.8.
capink is offline   Reply With Quote
Old 10-11-2020, 03:24 PM   #779
dunhill
Guru
dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.
 
dunhill's Avatar
 
Posts: 893
Karma: 810834
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
Quote:
Originally Posted by capink View Post
Thanks for the input. The changes are incremental and backward compatible. The main code written by kiwidude is almost untouched (except for few fixes), and still drives the functionality of the plugin including the new additions.

If all goes well, I will release as 1.8.

Check your private @capink I send you what you requested
dunhill is offline   Reply With Quote
Old 10-14-2020, 06:34 AM   #780
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
Released version 1.8.0. The same as the last beta with one fix for missing import.
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 01:49 AM.


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