![]() |
#1 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,242
Karma: 23446430
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Small Change to Metadata Source plugin API
Just a heads up, if you have written a metadata source plugin, the signature for the get_book_url method has changed. It now needs to return (identifier_type, identifier_val, URL) instead of just URL.
So for example the amazon plugin now does Code:
def get_book_url(self, identifiers): asin = identifiers.get('amazon', None) if asin is None: asin = identifiers.get('asin', None) if asin: return ('amazon', asin, 'http://amzn.com/%s'%asin) |
![]() |
![]() |
![]() |
#2 |
Calibre Plugins Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,667
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
For the book details pane to provide hyperlink ids by the looks of it?
Very cool, I like the convenient way to jump to the Goodreads book (which you otherwise need a menu item in the Goodreads Sync plugin to do). |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,242
Karma: 23446430
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Yeah, that was the motivation
![]() |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Metadata Source Plugin] Goodreads | kiwidude | Plugins | 738 | 07-10-2024 01:02 PM |
calibre's new plugin API | kovidgoyal | Plugins | 26 | 05-07-2011 02:43 PM |
New metadata API in 0.8 questions | kiwidude | Development | 38 | 04-18-2011 10:42 AM |
Metadata scraper plugin api | kiwidude | Development | 5 | 03-06-2011 11:58 AM |
Ubook plugin api | Dopedangel | Reading and Management | 0 | 08-25-2007 06:54 AM |