|
|
#1 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,528
Karma: 8065948
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
API change: db2.authors_with_sort_strings
FYI in case any plugin developer uses this API:
The return value of the method authors_with_sort_string in library.database2.py has changed. The method returns the authors for a given book. Formerly it returned a list of tuples containing two values: (author_name, author_sort). It now returns a list of tuples containing three values: (author_id, author_name, author_sort); author_id has been added. Author_id is the id of the author in the authors table. The other two values are unicode strings. Note that this method replaces '|' characters in the author's name with commas. In addition, a new API has been added: books_for_author( id_, index_is_id=False). Given an author_id, the method returns a list of ids of books referring to that author. It returns [] if no books are found. |
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| calibre's new plugin API | kovidgoyal | Plugins | 26 | 05-07-2011 03:43 PM |
| Small Change to Metadata Source plugin API | kovidgoyal | Development | 2 | 04-25-2011 03:55 PM |
| New metadata API in 0.8 questions | kiwidude | Development | 38 | 04-18-2011 11:42 AM |
| Goodreads has published an API | EricLandes | Calibre | 6 | 01-12-2011 05:39 PM |
| Ubook plugin api | Dopedangel | Reading and Management | 0 | 08-25-2007 07:54 AM |