Additional fix for ficwad, bump versions.

This commit is contained in:
Jim Miller 2014-10-20 21:04:14 -05:00
parent bf2684557e
commit f82bcfeed5
3 changed files with 3 additions and 3 deletions

View file

@ -1,6 +1,6 @@
# ffd-retief-hrd fanfictiondownloader
application: fanfictiondownloader
version: 2-0-07
version: 2-0-08
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 = (2, 0, 7)
version = (2, 0, 8)
minimum_calibre_version = (1, 48, 0)
#: This field defines the GUI plugin class that contains all the code

View file

@ -130,7 +130,7 @@ class FicwadComSiteAdapter(BaseSiteAdapter):
self.story.setMetadata('title', stripHTML(titleh4.a))
# Find authorid and URL from... author url.
a = soup.find('a', href=re.compile(r"^/author/\d+"))
a = soup.find('span',{'class':'author'}).find('a', href=re.compile(r"^/author/\d+"))
self.story.setMetadata('authorId',a['href'].split('/')[2])
self.story.setMetadata('authorUrl','http://'+self.host+a['href'])
self.story.setMetadata('author',a.string)