Set calibre's author link field to authorUrl.

This commit is contained in:
Jim Miller
2012-04-09 11:34:52 -05:00
parent d5f1484cb7
commit ce8cf44101
2 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ class FanFictionDownLoaderBase(InterfaceActionBase):
description = 'UI plugin to download FanFiction stories from various sites.'
supported_platforms = ['windows', 'osx', 'linux']
author = 'Jim Miller'
version = (1, 5, 11)
version = (1, 5, 12)
minimum_calibre_version = (0, 8, 30)
#: This field defines the GUI plugin class that contains all the code
+7 -1
View File
@@ -768,7 +768,13 @@ make_firstimage_cover:true
if epubmi.cover_data[1] is not None:
db.set_cover(book_id, epubmi.cover_data[1])
#mi.cover = epubmi.cover_data[1]
# set author link if found. All current adapters have authorUrl.
if 'authorUrl' in book['all_metadata']:
autid=db.get_author_id(book['author'])
db.set_link_field_for_author(autid, unicode(book['all_metadata']['authorUrl']),
commit=False, notify=False)
db.set_metadata(book_id,mi)
# do configured column updates here.