mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-04-29 10:25:43 +02:00
Fix author URLs for multiple author stories, bump versions again.
This commit is contained in:
parent
e0b56d2f2d
commit
e128888b3e
5 changed files with 12 additions and 5 deletions
2
app.yaml
2
app.yaml
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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 []
|
||||
|
||||
|
|
|
|||
|
|
@ -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 }}
|
||||
|
|
|
|||
Loading…
Reference in a new issue