From cb5587b0c7f7f121ca594d31a89c37beab88be82 Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Sat, 7 Sep 2013 14:32:48 -0500 Subject: [PATCH] Fix for calibre pre-1.0.0. --- calibre-plugin/ffdl_plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calibre-plugin/ffdl_plugin.py b/calibre-plugin/ffdl_plugin.py index 6ab1c9c7..1a15d82c 100644 --- a/calibre-plugin/ffdl_plugin.py +++ b/calibre-plugin/ffdl_plugin.py @@ -1530,8 +1530,8 @@ class FanFictionDownLoaderPlugin(InterfaceAction): # Moved down so author's already in the DB. if 'authorUrl' in book['all_metadata']: authurls = book['all_metadata']['authorUrl'].split(", ") + authorlist = [ a.replace('&',';') for a in book['author'] ] if hasattr(db, 'new_api'): # new_api starts in calibre 1.0.0 - authorlist = [ a.replace('&',';') for a in book['author'] ] authorids = db.new_api.get_item_ids('authors',authorlist) authordata = db.new_api.author_data(authorids.values()) # print("\n\nauthorids:%s"%authorids)