From f82bcfeed55be2ef20005081d7c241204c346932 Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Mon, 20 Oct 2014 21:04:14 -0500 Subject: [PATCH] Additional fix for ficwad, bump versions. --- app.yaml | 2 +- calibre-plugin/__init__.py | 2 +- fanficdownloader/adapters/adapter_ficwadcom.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app.yaml b/app.yaml index 8012f0e6..fa1cf3e9 100644 --- a/app.yaml +++ b/app.yaml @@ -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 diff --git a/calibre-plugin/__init__.py b/calibre-plugin/__init__.py index d88db26b..68d88d9b 100644 --- a/calibre-plugin/__init__.py +++ b/calibre-plugin/__init__.py @@ -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 diff --git a/fanficdownloader/adapters/adapter_ficwadcom.py b/fanficdownloader/adapters/adapter_ficwadcom.py index c4cb30ea..2e30b875 100644 --- a/fanficdownloader/adapters/adapter_ficwadcom.py +++ b/fanficdownloader/adapters/adapter_ficwadcom.py @@ -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)