Fix a bug with AO3 single chapter stories introduced with do_update_hook.

This commit is contained in:
Jim Miller 2013-12-12 17:59:41 -06:00
parent f8d1b21007
commit 4d41c28f3c
3 changed files with 3 additions and 3 deletions

View file

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

View file

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

View file

@ -188,7 +188,7 @@ class ArchiveOfOurOwnOrgAdapter(BaseSiteAdapter):
self.story.setMetadata('numChapters',len(chapters))
logger.debug("numChapters: (%s)"%self.story.getMetadata('numChapters'))
if len(chapters)==1:
self.chapterUrls.append((self.story.getMetadata('title'),'http://'+self.host+chapter['href']+addurl))
self.chapterUrls.append((self.story.getMetadata('title'),'http://'+self.host+chapters[0]['href']+addurl))
else:
for index, chapter in enumerate(chapters):
# strip just in case there's tags, like <i> in chapter titles.