Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 06-21-2011, 01:29 PM   #1
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,733
Karma: 6690881
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.
chaley is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
calibre's new plugin API kovidgoyal Plugins 26 05-07-2011 02:43 PM
Small Change to Metadata Source plugin API kovidgoyal Development 2 04-25-2011 02:55 PM
New metadata API in 0.8 questions kiwidude Development 38 04-18-2011 10:42 AM
Goodreads has published an API EricLandes Calibre 6 01-12-2011 04:39 PM
Ubook plugin api Dopedangel Reading and Management 0 08-25-2007 06:54 AM


All times are GMT -4. The time now is 03:45 AM.


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