diff --git a/calibre-plugin/__init__.py b/calibre-plugin/__init__.py index 00457da..e43518d 100644 --- a/calibre-plugin/__init__.py +++ b/calibre-plugin/__init__.py @@ -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 diff --git a/calibre-plugin/ffdl_plugin.py b/calibre-plugin/ffdl_plugin.py index 322758d..ab7f03f 100644 --- a/calibre-plugin/ffdl_plugin.py +++ b/calibre-plugin/ffdl_plugin.py @@ -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.