11-28-2010, 08:20 AM | #1 |
Calibre Plugins Developer
Posts: 4,661
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Custom GUI plugins for Calibre here...
This thread is now closed and deprecated due to the creation of a plugins subforum. Each plugin now has it's own thread. You may find all plugins at the new Index of plugins sticky thread and installation instructions on the Introduction to plugins sticky thread.
This thread has been created for the “tinkerers” like me out there who have new features they would like to see appear in the Calibre context menus or toolbar. Traditionally new UI features could only be added by directly modifying the source and waiting for a patch to be accepted into a new version of Calibre. However as of Calibre 0.7.32 it is possible to create such new features as “interface plugins” in a zip file that users can download and install for themselves. I’ve written a couple that others may find useful and perhaps others out there have implementations or ideas for more they can add to this thread. What is a Calibre UI plugin? A plugin consists of a *plugin.zip file containing Python code that can be installed by the calibre UI to extend its functionality. Information on writing plugins for Calibre can be found in the user manual at this link. A "Hello World" example can be found on this post. In addition you could look at the code within the following example plugins. How to install a Calibre interface plugin:
What if the plugin doesn't work?
NOTE: I take no responsibility for the plugins so don't blame me should something go horribly wrong - I'm just sharing what has worked for me with others to use (or not) as they like... Quick Index to Plugins within this thread:
Last edited by kiwidude; 01-27-2011 at 08:48 PM. Reason: Message about closed thread |
11-28-2010, 08:25 AM | #2 |
Calibre Plugins Developer
Posts: 4,661
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Plugin for a “Search the internet” feature.
*** This plugin has now been moved - download from the link below ***
https://www.mobileread.com/forums/showthread.php?t=1187584 This plugin was designed to allow quick navigation from the selected books in the library view in Calibre to a choice of websites in your web browser. By default websites such as FantasticFiction, Amazon, Google and Wikipedia are assigned, however around 100 more website links are included for you to select from and you can add/remove your own to this list. I mainly use this plugin to look for better quality metadata than that available from the default Calibre sources, however it is also useful to get detailed reviews, identify missing books in a series, accurate publication dates, find similar authors etc. Main Features
Special Notes:
Installation Steps:
Original forum discussion thread here Last edited by kiwidude; 01-28-2011 at 08:59 PM. Reason: Moved to separate thread |
Advert | |
|
11-28-2010, 08:29 AM | #3 |
Calibre Plugins Developer
Posts: 4,661
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Plugin for a “Add to user category” feature
*** This plugin has now been deprecated and the replacement "User Category plugin" can be downloaded from the link below ***
https://www.mobileread.com/forums/sho...d.php?t=118934 This plugin offers a quick way to add from the selected books to a specified “user category” via the context menu. A user category (defined using the tag viewer panel on the left of the Calibre display) can contain lists of any combination of authors, tags or series or publishers. For instance you could create a “Favourite Authors” or “Must Read” user category containing not only selected authors but also specified tags or series names etc. Calibre by default includes a “Manage user categories” button allowing you to create, add and remove the categories and contents. However it can be inconvenient to add items to categories using this dialog particularly with large databases as it has no search capability. This plugin offers a convenient right-click alternative allowing you to add from the books selected in the library view. Duplicates will not be added to a user category. If the category contents have been changed by your add click action then you should see this reflected in the count and contents of that category in the tag viewer. In the attached screenshot I have two categories defined: “Fav Authors” and “Processed Auth”. In my case as these are author specific categories I would only use the “Selected authors” sub-menu when adding to them, but the flexibility for combinations exists as you require it. Special Notes:
Installation Steps:
Original tracker ticket here Original forum discussion thread here Last edited by kiwidude; 01-28-2011 at 09:00 PM. Reason: Replaced with User Category plugin |
11-28-2010, 08:48 AM | #4 |
Wizard
Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
|
This needs to be a sticky. Also, thanks for the plugins, I'm gonna test the search thing now.
|
11-28-2010, 09:19 AM | #5 |
Wizard
Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
|
Installed SearchTheInternet as per instructions. After restarting calibre, it hangs on the splash screen, calibre-debug -g gives the following:
Code:
C:\Windows\System32>calibre-debug -g Starting up... Traceback (most recent call last): File "site-packages\calibre\gui2\main.py", line 250, in initialize File "site-packages\calibre\gui2\main.py", line 231, in initialize_db File "site-packages\calibre\gui2\main.py", line 200, in initialize_db_stage2 File "site-packages\calibre\gui2\main.py", line 151, in start_gui File "site-packages\calibre\gui2\ui.py", line 105, in __init__ AttributeError: 'NoneType' object has no attribute 'split' Any ideas? |
Advert | |
|
11-28-2010, 09:46 AM | #6 | |
Calibre Plugins Developer
Posts: 4,661
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Quote:
|
|
11-28-2010, 10:08 AM | #7 |
Wizard
Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
|
Nope, that didn't fix it. If it helps, I get the same error regardless of whether the tweak is set or not.
Edit: Oh, and no apologies necessary, that's the nature of the beast when running open source software. Last edited by Manichean; 11-28-2010 at 10:15 AM. |
11-28-2010, 10:27 AM | #8 | |
Calibre Plugins Developer
Posts: 4,661
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Quote:
Code:
search_internet_menus = None if tweaks.has_key('stip_search_internet_menus'): |
|
11-28-2010, 10:36 AM | #9 |
creator of calibre
Posts: 44,174
Karma: 22670164
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
@Manichean: You have to run from up to date source (or wait for 0.7.32) to be able to use the plugins.
|
11-28-2010, 10:40 AM | #10 |
Wizard
Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
|
Oh, I thought that was an addition to 0.7.31. I admit I didn't check the changelogs. I'm going to be ashamed in that corner over there for a while, if you all don't mind
|
11-28-2010, 10:44 AM | #11 | |
US Navy, Retired
Posts: 9,865
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
Quote:
@kiwidude - I see you added Plugins in this thread will not work until the calibre 0.7.32 release to the first post. This is good but there are a few other places above where you should change 0.7.31 to 0.7.32 also |
|
11-28-2010, 10:45 AM | #12 |
Calibre Plugins Developer
Posts: 4,661
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Not your fault dude, it was me getting the versions wrong, so used to running from source. I will make sure all those 0.7.31 references get changed in the first post, I see Koval changed a couple and made this sticky, thanks for that.
|
11-28-2010, 11:48 AM | #13 |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
@kiwidude,
Is the 'no-bookmarks in EPUB' you were talking about yesterday possible/available as a plugin? Edit: I wouldn't want to run from source. Last edited by jackie_w; 11-28-2010 at 11:49 AM. Reason: clarify |
11-28-2010, 01:56 PM | #14 |
Calibre Plugins Developer
Posts: 4,661
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Unfortunately not Jackie. It required a change to existing code rather than adding new functionality. You will have to petition Kovid to include the patch in a release
|
11-28-2010, 02:11 PM | #15 |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
but thanks for replying.
Well done for adding new functionality. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Custom external commands in the GUI | janvanmaar | Calibre | 18 | 11-28-2010 10:35 AM |
Calibre GUI behavior between machines | phenomshel | Calibre | 2 | 08-21-2010 06:28 PM |
Calibre 0.6.10 GUI crashes on startup | Wagenius | Calibre | 1 | 09-03-2009 01:53 AM |
--breadth-first option in calibre GUI | osmo79 | Calibre | 1 | 05-30-2009 11:45 AM |
Calibre GUI crash on convert | aapezzuto | Calibre | 1 | 08-02-2008 06:39 PM |