From 1e61bebf21026a9cf3aebf6106958c6f8397b1c9 Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Sat, 22 Jun 2013 19:19:42 -0500 Subject: [PATCH] Fix for siye.co.uk stories with HTML in the title, bump versions. --- app.yaml | 2 +- calibre-plugin/__init__.py | 2 +- fanficdownloader/adapters/adapter_siyecouk.py | 2 +- index.html | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app.yaml b/app.yaml index d43d24c..1a3e784 100644 --- a/app.yaml +++ b/app.yaml @@ -1,6 +1,6 @@ # ffd-retief-hrd fanfictiondownloader application: fanfictiondownloader -version: 4-4-60 +version: 4-4-61 runtime: python27 api_version: 1 threadsafe: true diff --git a/calibre-plugin/__init__.py b/calibre-plugin/__init__.py index e924c6c..48ff690 100644 --- a/calibre-plugin/__init__.py +++ b/calibre-plugin/__init__.py @@ -26,7 +26,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, 27) + version = (1, 7, 28) minimum_calibre_version = (0, 8, 57) #: This field defines the GUI plugin class that contains all the code diff --git a/fanficdownloader/adapters/adapter_siyecouk.py b/fanficdownloader/adapters/adapter_siyecouk.py index 83d5391..8873ea4 100644 --- a/fanficdownloader/adapters/adapter_siyecouk.py +++ b/fanficdownloader/adapters/adapter_siyecouk.py @@ -110,7 +110,7 @@ class SiyeCoUkAdapter(BaseSiteAdapter): # XXX ## Title titlea = authsoup.find('a', href=re.compile(r'viewstory.php\?sid='+self.story.getMetadata('storyId')+"$")) - self.story.setMetadata('title',titlea.string) + self.story.setMetadata('title',stripHTML(titlea)) # Find the chapters (from soup, not authsoup): for chapter in soup.findAll('a', href=re.compile(r'viewstory.php\?sid='+self.story.getMetadata('storyId')+"&chapter=\d+$")): diff --git a/index.html b/index.html index 89c97c9..c313810 100644 --- a/index.html +++ b/index.html @@ -53,14 +53,14 @@

Hi, {{ nickname }}! This is FanFictionDownLoader, which makes reading stories from various websites much easier.

- +

Questions? Check out our FAQs.