mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-05-08 12:36:11 +02:00
Fix for calibre pre-1.0.0.
This commit is contained in:
parent
f2a74c9ffc
commit
cb5587b0c7
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue