From d047e22e812f484c95ac6a91bcbc84000b6d5f6f Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 7 Jun 2017 16:50:32 +0530 Subject: [PATCH] Better fix for undecodeable titles --- src/calibre/web/feeds/news.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/web/feeds/news.py b/src/calibre/web/feeds/news.py index 219f8abe16..29f966ec5e 100644 --- a/src/calibre/web/feeds/news.py +++ b/src/calibre/web/feeds/news.py @@ -396,7 +396,7 @@ class BasicNewsRecipe(Recipe): # See the built-in recipes for examples of these settings. def short_title(self): - return self.title + return force_unicode(self.title, preferred_encoding) def is_link_wanted(self, url, tag): ''' @@ -1414,7 +1414,7 @@ class BasicNewsRecipe(Recipe): def create_opf(self, feeds, dir=None): if dir is None: dir = self.output_dir - title = force_unicode(self.short_title(), preferred_encoding) + title = self.short_title() if self.output_profile.periodical_date_in_title: title += strftime(self.timefmt) mi = MetaInformation(title, [__appname__])