12-10-2019, 04:28 PM | #1 |
Junior Member
Posts: 5
Karma: 10
Join Date: Apr 2017
Device: Kobo Glo
|
Calibre x Apple iBooks/Books interfacing / plugin
Hey Guys,
First of all I am sorry if that is a repeated issue, I have searched in the forum on the subject but did not find any related thread. I am writing some python code to interface with apple's proprietary MacOS iBooks/Books applications (by editing the sqlite and plist databases), that replaces iTunes to manage ebooks. So far I am able to add new ebooks, collections and series and update their metadata information as well. I already know how to delete and list from the catalog -- soon to be implemented as well. A foreseeable goal would be to package it as a calibre plugin and give users back the ability to sync Calibre with ios devices through Apple iBooks/Books. Does that make sense? What would be the best approach? I have started reading the docs on plugin development and calibre API, I am still trying to figure it out. best regards |
12-11-2019, 12:51 AM | #2 |
creator of calibre
Posts: 44,384
Karma: 23766374
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You would create a GUI plugin, when the user clicks on it it would need to call
self.gui.device_manager.mount_device(kls=IBooksDri ver) where IbooksDriver is a class that implements the driver. The interface such a class must implement is in devices/interface.py simply inherit from that class and implement the various methods. |
Advert | |
|
12-13-2019, 10:54 AM | #3 |
Junior Member
Posts: 4
Karma: 10
Join Date: Feb 2011
Device: Hanlin V3 Clone (BeBook)
|
I'd be in
If you make that i'd be alllll over it
|
12-20-2019, 04:53 PM | #4 |
Junior Member
Posts: 5
Karma: 10
Join Date: Apr 2017
Device: Kobo Glo
|
Working on it, I hope to call for alpha testers a couple of weeks after the holidays.
|
12-20-2019, 05:04 PM | #5 | |
Junior Member
Posts: 5
Karma: 10
Join Date: Apr 2017
Device: Kobo Glo
|
Quick question on adding icons to the menubar
Quote:
Anyway, I do still have some doubt on the GUI integration. Is if there is a way to automatically add the plugin icon to the menubar or its context menu option? The ones I created using action_spec and create_action() are available to be added if I go to the customization preferences pane, but I am wondering if they can be added by any method of the GUI object, sparing the user of this effort. |
|
Advert | |
|
12-20-2019, 05:33 PM | #6 |
null operator (he/him)
Posts: 20,947
Karma: 27620688
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Most (all ???) GUI plugins give the user the choice of defining the toolbars and menus where the tool is to be shown - it's a multiple choice list, viz:
Added: you might only get that when a plugin is first installed, not when updating an existing plugin. BR Last edited by BetterRed; 12-20-2019 at 06:46 PM. |
01-06-2020, 08:56 AM | #7 | |
Junior Member
Posts: 5
Karma: 10
Join Date: Apr 2017
Device: Kobo Glo
|
Quote:
Thanks for the input. |
|
01-06-2020, 04:32 PM | #8 | |
null operator (he/him)
Posts: 20,947
Karma: 27620688
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
That's probably it, a brain cell is telling me that the "Add xxx to toolbars and menus" dialogue also doesn't pop when you add a plugin from a file. BR |
|
06-23-2020, 08:55 AM | #9 |
Junior Member
Posts: 3
Karma: 10
Join Date: Jun 2020
Device: iPad
|
That's a great idea, coz we get best of both worlds.
By interfacing with books app, does it mean book app highlights and notes are then synced back to calibre? Because that's my major issue with my (manual) integration. I recall the content of previously read book by my highlights, so they're very important to me. |
Tags |
apple, ibooks, ios, macos, plugin development |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ibooks drm removal calibre plugin | JGageSATX | Plugins | 0 | 07-25-2018 05:12 PM |
Uploading books from ibooks to Calibre | lisaransom | Calibre | 2 | 12-12-2012 03:29 PM |
Apple's iBooks 2, iBooks Author: Bids to own publishing's future | wannabee | News | 0 | 01-19-2012 07:33 PM |
Problem Interfacing Calibre with Lenovo IdeaPad | datavet | Devices | 4 | 01-12-2012 02:09 PM |
calibre Content Server Interfacing API | alexyeo | Development | 2 | 10-31-2011 11:18 PM |