View Single Post
Old 04-25-2011, 02:18 PM   #1
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 40,046
Karma: 17765146
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)
kovidgoyal is offline   Reply With Quote