Fix author URLs for multiple author stories, bump versions again.

This commit is contained in:
Jim Miller 2013-02-04 13:29:16 -06:00
parent e0b56d2f2d
commit e128888b3e
5 changed files with 12 additions and 5 deletions

View file

@ -1,6 +1,6 @@
# ffd-retief-hrd fanfictiondownloader
application: fanfictiondownloader
version: 4-4-41
version: 4-4-42
runtime: python27
api_version: 1
threadsafe: true

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, 7, 7)
version = (1, 7, 8)
minimum_calibre_version = (0, 8, 57)
#: This field defines the GUI plugin class that contains all the code

View file

@ -1055,6 +1055,7 @@ make_firstimage_cover:true
if 'authorUrl' in book['all_metadata']:
authurls = book['all_metadata']['authorUrl'].split(", ")
for i, auth in enumerate(book['author']):
#print("===Update author url for %s to %s"%(auth,authurls[i]))
autid=db.get_author_id(auth)
db.set_link_field_for_author(autid, unicode(authurls[i]),
commit=False, notify=False)

View file

@ -432,8 +432,13 @@ class Story(Configurable):
map(removeAllEntities,retlist) )
if retlist:
# remove dups and sort.
return sorted(list(set(retlist)))
if listname in ('author','authorUrl'):
# need to retain order for author & authorUrl so the
# two match up.
return retlist
else:
# remove dups and sort.
return sorted(list(set(retlist)))
else:
return []

View file

@ -62,6 +62,7 @@
<li>Strip leading 0s from story ids for canonical ids in AO3.</li>
<li>Better fix for Nook hyphenation issue--Nook now honors adobe-hyphenate: none.</li>
<li>Fix broken lastupdate tags feature. Defaulted off for PI.</li>
<li>Fix author URLs for multiple author stories.</li>
</ul>
</p>
<p>
@ -72,7 +73,7 @@
If you have any problems with this application, please
report them in
the <a href="http://groups.google.com/group/fanfic-downloader">FanFictionDownLoader Google Group</a>. The
<a href="http://4-4-39.fanfictiondownloader.appspot.com">Previous Version</a> is also available for you to use if necessary.
<a href="http://4-4-41.fanfictiondownloader.appspot.com">Previous Version</a> is also available for you to use if necessary.
</p>
<div id='error'>
{{ error_message }}