Remove extra code for unchanged author link for calibre 1.0.0, bump version.

This commit is contained in:
Jim Miller 2013-08-31 19:50:18 -05:00
parent 29b1ca9a7e
commit 6674e19f94
2 changed files with 2 additions and 5 deletions

View file

@ -26,7 +26,7 @@ class FanFictionDownLoaderBase(InterfaceActionBase):
description = 'UI plugin to download FanFiction stories from various sites.'
supported_platforms = ['windows', 'osx', 'linux']
author = 'Jim Miller'
version = (1, 7, 38)
version = (1, 7, 39)
minimum_calibre_version = (0, 8, 57)
#: This field defines the GUI plugin class that contains all the code

View file

@ -1539,10 +1539,7 @@ class FanFictionDownLoaderPlugin(InterfaceAction):
author_id_to_link_map = dict()
for i, author in enumerate(authorlist):
aid = authorids[author]
# this additional check shouldn't be needed after calibre 1.0.0
if aid and ('link' not in authordata[aid] or authordata[aid]['link'] != authurls[i]):
author_id_to_link_map[aid] = authurls[i]
author_id_to_link_map[authorids[author]] = authurls[i]
# print("author_id_to_link_map:%s\n\n"%author_id_to_link_map)
db.new_api.set_link_for_authors(author_id_to_link_map)