Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 10-05-2012, 03:02 PM   #1
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
Posts: 1,577
Karma: 411867
Join Date: Dec 2011
Location: Midwest USA
Device: Nook STR w/Glowlight, Kindle 3g, Droid
[GUI Plugin] SmartEject

Have you ever added or deleted books from your calibre library, only to find that you forgot to add or delete them from your ebook device later when you connected it? Or ever just wanted a big, easy to click eject button on your toolbar?

That's what SmartEject does.

When you attach your device, you can have an eject button on your 'device connected' main toolbar. When you click it, it checks for duplicate, added or deleted books on the device and offers to show them to you if there are any.

Main Features of SmartEject Plugin:
  • Top level device eject button, suitable for main toolbar.
  • Check for duplicate books on device before ejecting.
  • Check for books in library, but not on device before ejecting.
  • Check for books on device, but not in library before ejecting.
  • Configure which checks to perform on a library-by-library basis.
  • Configure the searches to use to perform the checks on a library-by-library basis.

Special Notes:
  • Requires Calibre v0.8.57 or later.
  • With large or complex libraries, displaying the lists of dup/added/deleted books can be slow.

Languages:

This plugin has translations for:
  • English
  • French
  • Spanish
  • Swedish
  • Ukrainian
  • Portuguese (Brazil)

Checking Preferences > Searching > 'Limit the searched metadata' and setting the columns to search to 'title, authors, tags, series, publisher, comments, identifiers' (NOT any of my custom columns) speeds up the display searches for me a fair bit.

Installation Steps:
  1. Download the attached zip file and install the plugin/add to context menu or toolbar/restart Calibre as described in the Introduction to plugins thread.

Paypal Donations:
  • If you find this plugin useful please feel free to show your appreciation.

Version History:
Spoiler:

Version 2.0.0 - 22 Jul 2014
Now supporting Qt5 and Calibre 2.0 (currently in beta).
Translations updates to Spanish, French, Swedish and Ukrainian and new translation Portuguese (Brazil), courtesy of the volunteers at Transifex.
Plugin zip file now uncompressed for performance per Kovid's recommendation.

Version 1.0.4 - 02 Jul 2014
Add Swedish & Ukrainian translations, courtesy of the volunteers at Transifex.

Version 1.0.3 - 22 Jan 2014
Add Spanish translation, courtesy of Terisa.

Version 1.0.2 - 11 Nov 2013
Allow for translation of plugin. Currently it has English and French (courtesy of Ptitprince).

Version 1.0.1 - 22 Jun 2013
Missed one place making SmartEject searches configurable.

Version 1.0.0 - 21 Jun 2013
Make searches configurable.

Version 0.1.0 - 05 Oct 2012
Initial public release.
Attached Files
File Type: zip SmartEject.zip (68.2 KB, 5 views)

Last edited by JimmXinu; Yesterday at 11:40 PM. Reason: Update.
JimmXinu is offline   Reply With Quote
Old 10-07-2012, 12:42 PM   #2
cklls
Zealot
cklls ought to be getting tired of karma fortunes by now.cklls ought to be getting tired of karma fortunes by now.cklls ought to be getting tired of karma fortunes by now.cklls ought to be getting tired of karma fortunes by now.cklls ought to be getting tired of karma fortunes by now.cklls ought to be getting tired of karma fortunes by now.cklls ought to be getting tired of karma fortunes by now.cklls ought to be getting tired of karma fortunes by now.cklls ought to be getting tired of karma fortunes by now.cklls ought to be getting tired of karma fortunes by now.cklls ought to be getting tired of karma fortunes by now.
 
Posts: 139
Karma: 1030058
Join Date: Jul 2010
Location: New England
Device: Nook, EB1150, Pandigital SuperNova Tablet, Samsung Galaxy Tab 2 10.1
I have several different reader apps on my Android tablet, and have, at times, loaded the same book into multiple app libraries. Would this app find them within the different libraries and allow me to selectively remove them from two while leaving it in the third? That's what I'm understanding from the description, but I've been known to misunderstand things now and then! If that's what this does, I love you even more than I did when you introduced the fanfic plug-in!!!!
cklls is offline   Reply With Quote
Old 10-07-2012, 01:09 PM   #3
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
Posts: 1,577
Karma: 411867
Join Date: Dec 2011
Location: Midwest USA
Device: Nook STR w/Glowlight, Kindle 3g, Droid
If calibre would see them as duplicates, yes.

SmartEject does three different searches:
  • Dups: From the Library, search ondevice:"("
  • Deleted: From each device location (Main, Card A & Card B), search inlibrary:False
  • Added: From the Library, search not ondevice:"~[a-z]"

My experience is that the dup search will find the same book in different places on my Android smart phone. I assume your Android tablet would work the same.

However, you might cause yourself problems with some reader apps if you just delete the files. Aldiko comes to mind as one that manages it's own library.
JimmXinu is offline   Reply With Quote
Old 10-07-2012, 01:19 PM   #4
cklls
Zealot
cklls ought to be getting tired of karma fortunes by now.cklls ought to be getting tired of karma fortunes by now.cklls ought to be getting tired of karma fortunes by now.cklls ought to be getting tired of karma fortunes by now.cklls ought to be getting tired of karma fortunes by now.cklls ought to be getting tired of karma fortunes by now.cklls ought to be getting tired of karma fortunes by now.cklls ought to be getting tired of karma fortunes by now.cklls ought to be getting tired of karma fortunes by now.cklls ought to be getting tired of karma fortunes by now.cklls ought to be getting tired of karma fortunes by now.
 
Posts: 139
Karma: 1030058
Join Date: Jul 2010
Location: New England
Device: Nook, EB1150, Pandigital SuperNova Tablet, Samsung Galaxy Tab 2 10.1
Aldiko is one of my apps, but I've also got Mantano, Moon+, FBReader, CoolReader, and at least one other. Tried and liked elements of each, and use them for different purposes at different times. I've just managed to load too many dupes into them and, as you obviously know, it clogs up my SD card with extra files.

You are one serious gem, my dear!! Can't wait to try this out. Thanks for another great reading tool.
cklls is offline   Reply With Quote
Old 10-28-2012, 01:46 PM   #5
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
Posts: 1,577
Karma: 411867
Join Date: Dec 2011
Location: Midwest USA
Device: Nook STR w/Glowlight, Kindle 3g, Droid
FYI, checking Preferences > Searching > 'Limit the searched metadata' and setting the columns to search to 'title, authors, tags, series, publisher, comments, identifiers' (NOT any of my custom columns) speeds up the display searches for me a fair bit.

By rights, I wouldn't expect it to, since the searches SmartEject uses are all prefixed with a column.

The call to self.gui.library_view.model().db.search_getting_id s(...) is very very fast.

The call to self.gui.search.do_search() after self.gui.search.setEditText(...) is much slower. If do_search() doesn't do the same prefix optimization, that could explain the speed up.
JimmXinu is offline   Reply With Quote
Old 06-21-2013, 03:29 PM   #6
auspex
Kobo hacker
auspex ought to be getting tired of karma fortunes by now.auspex ought to be getting tired of karma fortunes by now.auspex ought to be getting tired of karma fortunes by now.auspex ought to be getting tired of karma fortunes by now.auspex ought to be getting tired of karma fortunes by now.auspex ought to be getting tired of karma fortunes by now.auspex ought to be getting tired of karma fortunes by now.auspex ought to be getting tired of karma fortunes by now.auspex ought to be getting tired of karma fortunes by now.auspex ought to be getting tired of karma fortunes by now.auspex ought to be getting tired of karma fortunes by now.
 
auspex's Avatar
 
Posts: 121
Karma: 1066430
Join Date: Sep 2012
Location: Nova Scotia
Device: Kobo touch, Samsung Galaxy Ace IIx
Jim, how about modifying the search:
Quote:
Originally Posted by JimmXinu View Post
Added: From the Library, search not ondevice:"~[a-z]"
To use
Quote:
formats:true not ondevice:"~[a-z]"
I have my entire DTB library catalogued in calibre, whether I have an e-copy or not, and I'm sure I'm not the only one, so the SmartEject plugin always tells me I have books in the library that aren't on the device - and I can't put them on the device.

Personally, I'd like to be able to tell it formats:"=epub", but formats:true should work without affecting anybody negatively.

Last edited by auspex; 06-21-2013 at 03:32 PM.
auspex is offline   Reply With Quote
Old 06-21-2013, 06:29 PM   #7
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
Posts: 1,577
Karma: 411867
Join Date: Dec 2011
Location: Midwest USA
Device: Nook STR w/Glowlight, Kindle 3g, Droid
Quote:
Originally Posted by auspex View Post
Personally, I'd like to be able to tell it formats:"=epub", but formats:true should work without affecting anybody negatively.
Until somebody comes along who keeps books without any formats. I've heard of people doing that.

Try the attached version -- it allows you to configure the searches to your own taste. I expected somebody to ask for that feature months ago.

UPDATE Jun 22, 2013 Remove obsolete beta versions

Last edited by JimmXinu; 06-22-2013 at 12:25 PM. Reason: Remove obsolete beta versions
JimmXinu is offline   Reply With Quote
Old 06-21-2013, 07:14 PM   #8
auspex
Kobo hacker
auspex ought to be getting tired of karma fortunes by now.auspex ought to be getting tired of karma fortunes by now.auspex ought to be getting tired of karma fortunes by now.auspex ought to be getting tired of karma fortunes by now.auspex ought to be getting tired of karma fortunes by now.auspex ought to be getting tired of karma fortunes by now.auspex ought to be getting tired of karma fortunes by now.auspex ought to be getting tired of karma fortunes by now.auspex ought to be getting tired of karma fortunes by now.auspex ought to be getting tired of karma fortunes by now.auspex ought to be getting tired of karma fortunes by now.
 
auspex's Avatar
 
Posts: 121
Karma: 1066430
Join Date: Sep 2012
Location: Nova Scotia
Device: Kobo touch, Samsung Galaxy Ace IIx
Oh, now that's service above and beyond!!!!! And of course, as soon as I tried the search with my suggestion, I realized that it wasn't sufficient, as I have a number of books tagged "keep off kobo", which are explicitly not synced to my e-reader, so adding not tags:"=keep off kobo" was necessary for what I really wanted. And now it works perfectly! Thank you, very much.

I only just started using the plugin, and have only had an e-reader since September, so asking for a new feature seemed premature, but I figured asking to restrict it to "formats:true" was just a bugfix

Quote:
Until somebody comes along who keeps books without any formats. I've heard of people doing that.
but if it has no formats, you can't copy it to a device (at least not a Kobo):
Quote:
calibre, version 0.9.35
WARNING: No suitable formats: Could not upload the following books to the device, as no suitable formats were found. Convert the book(s) to a format supported by your device first.
I only send epubs to my Kobo - but I have pdfs and various other e-formats, so using "formats:true" would still show lots of "books" I don't want on the reader, but the ones that have no associated, TXT, EPUB, RTF, DOC, PDF, MOBI... can't be transferred to a Kobo, at least (I can imagine there might be readers that will let you load the metadata without any 'data').
auspex is offline   Reply With Quote
Old 06-21-2013, 10:17 PM   #9
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
Posts: 1,577
Karma: 411867
Join Date: Dec 2011
Location: Midwest USA
Device: Nook STR w/Glowlight, Kindle 3g, Droid
Quote:
Originally Posted by auspex View Post
Oh, now that's service above and beyond!!!!! And of course, as soon as I tried the search with my suggestion, I realized that it wasn't sufficient...
Which is exactly why I made it configurable instead--not that I thought you were wrong, but because you or somebody else would want something different.

Quote:
Originally Posted by auspex View Post
but if it has no formats, you can't copy it to a device (at least not a Kobo):
True--but it will still show up on the list of books not on the device with the default query.

Since this seems to be working for you, I'll go ahead and publish it for everybody.
JimmXinu is offline   Reply With Quote
Old 10-27-2013, 05:40 AM   #10
aleyx
Groupie
aleyx has met Morla.aleyx has met Morla.aleyx has met Morla.aleyx has met Morla.aleyx has met Morla.aleyx has met Morla.aleyx has met Morla.aleyx has met Morla.aleyx has met Morla.aleyx has met Morla.aleyx has met Morla.
 
Posts: 158
Karma: 19134
Join Date: Sep 2010
Location: France
Device: Cybook Orizon
Hello,

Could SmartEject be able to work with Reading List, to propose a sync if a list isn't empty? Or do you think that would be a job for Reading List?
aleyx is offline   Reply With Quote
Old 10-27-2013, 11:17 AM   #11
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
Posts: 1,577
Karma: 411867
Join Date: Dec 2011
Location: Midwest USA
Device: Nook STR w/Glowlight, Kindle 3g, Droid
Quote:
Originally Posted by aleyx View Post
Could SmartEject be able to work with Reading List, to propose a sync if a list isn't empty? Or do you think that would be a job for Reading List?
Good idea. Attached is a new version that does that. It works for me, but please give it a try and make sure it works for you, too.
Attached Files
File Type: zip SmartEject.zip (11.7 KB, 28 views)
JimmXinu is offline   Reply With Quote
Old 10-27-2013, 03:40 PM   #12
aleyx
Groupie
aleyx has met Morla.aleyx has met Morla.aleyx has met Morla.aleyx has met Morla.aleyx has met Morla.aleyx has met Morla.aleyx has met Morla.aleyx has met Morla.aleyx has met Morla.aleyx has met Morla.aleyx has met Morla.
 
Posts: 158
Karma: 19134
Join Date: Sep 2010
Location: France
Device: Cybook Orizon
Seems to work for me as well. Thank you!
aleyx is offline   Reply With Quote
Old 10-27-2013, 03:58 PM   #13
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
Posts: 1,577
Karma: 411867
Join Date: Dec 2011
Location: Midwest USA
Device: Nook STR w/Glowlight, Kindle 3g, Droid
Attached is a version of SmartEject with a first try at internationalization(i18) and localization(l10n) of a plugin.

I don't recommend using this version unless you're involved in the i18n/l10n effort.

UPDATE - Remove obsolete beta versions Nov 2, 2013

Last edited by JimmXinu; 11-02-2013 at 04:15 PM. Reason: Remove obsolete beta versions
JimmXinu is offline   Reply With Quote
Old 10-29-2013, 01:50 AM   #14
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 8,770
Karma: 12516053
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7
Thanks for an excellent plugin. I came here with a request and realized that you actually added my request back in June. I just didn't realize the plugin was customizable. Is it possible to add a right-click or other dropdown context menu to the icon with customize as an option?

Thanks again, great work.
DoctorOhh is online now   Reply With Quote
Old 10-29-2013, 03:08 PM   #15
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
Posts: 1,577
Karma: 411867
Join Date: Dec 2011
Location: Midwest USA
Device: Nook STR w/Glowlight, Kindle 3g, Droid
Quote:
Originally Posted by DoctorOhh View Post
Thanks for an excellent plugin. I came here with a request and realized that you actually added my request back in June. I just didn't realize the plugin was customizable. Is it possible to add a right-click or other dropdown context menu to the icon with customize as an option?
Glad you like it.

I hesitate to make it a drop down button with only one option on it. OTOH, a 'Run checks, but don't really eject' feature might be nice for testing configurations.
JimmXinu is offline   Reply With Quote
Reply

Tags
calibre, eject

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] EpubSplit JimmXinu Plugins 142 Today 01:33 AM
[GUI Plugin] FanFictionDownLoader JimmXinu Plugins 3147 Yesterday 10:12 PM
[GUI Plugin] EpubMerge JimmXinu Plugins 161 07-20-2014 07:55 PM
[GUI Plugin] KindleUnpack - The Plugin DiapDealer Plugins 245 07-17-2014 07:27 PM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 12:27 PM


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


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