From 857ae5b7fa84f5602efd9cf520f7f7100a6aa0cf Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Mon, 25 Nov 2013 12:48:17 -0600 Subject: [PATCH] Fix dc:language issue with defaulting to English. Bump versions. --- app.yaml | 2 +- calibre-plugin/__init__.py | 2 +- fanficdownloader/writers/writer_epub.py | 2 +- index.html | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app.yaml b/app.yaml index d9d9cf5..d8f8223 100644 --- a/app.yaml +++ b/app.yaml @@ -1,6 +1,6 @@ # ffd-retief-hrd fanfictiondownloader application: fanfictiondownloader -version: 4-4-84 +version: 4-4-85 runtime: python27 api_version: 1 threadsafe: true diff --git a/calibre-plugin/__init__.py b/calibre-plugin/__init__.py index 9706336..45d7c23 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 = (1, 8, 00) + version = (1, 8, 01) minimum_calibre_version = (0, 8, 57) #: This field defines the GUI plugin class that contains all the code diff --git a/fanficdownloader/writers/writer_epub.py b/fanficdownloader/writers/writer_epub.py index cbf6d3a..fb405a3 100644 --- a/fanficdownloader/writers/writer_epub.py +++ b/fanficdownloader/writers/writer_epub.py @@ -361,7 +361,7 @@ div { margin: 0pt; padding: 0pt; } metadata.appendChild(newTag(contentdom,"dc:contributor",text="fanficdownloader [http://fanficdownloader.googlecode.com]",attrs={"opf:role":"bkp"})) metadata.appendChild(newTag(contentdom,"dc:rights",text="")) - if self.story.getMetadata('langcode') != None: + if self.story.getMetadata('langcode'): metadata.appendChild(newTag(contentdom,"dc:language",text=self.story.getMetadata('langcode'))) else: metadata.appendChild(newTag(contentdom,"dc:language",text='en')) diff --git a/index.html b/index.html index dd9d98e..0e0e714 100644 --- a/index.html +++ b/index.html @@ -68,7 +68,7 @@

Changes:

@@ -80,7 +80,7 @@ If you have any problems with this application, please report them in the FanFictionDownLoader Google Group. The - Previous Version is also available for you to use if necessary. + Previous Version is also available for you to use if necessary.

{{ error_message }}