mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix error if recipe uses undecodeable bytestring for title
This commit is contained in:
parent
9564c94ad1
commit
97a018e391
@ -1414,7 +1414,7 @@ class BasicNewsRecipe(Recipe):
|
|||||||
def create_opf(self, feeds, dir=None):
|
def create_opf(self, feeds, dir=None):
|
||||||
if dir is None:
|
if dir is None:
|
||||||
dir = self.output_dir
|
dir = self.output_dir
|
||||||
title = self.short_title()
|
title = force_unicode(self.short_title(), preferred_encoding)
|
||||||
if self.output_profile.periodical_date_in_title:
|
if self.output_profile.periodical_date_in_title:
|
||||||
title += strftime(self.timefmt)
|
title += strftime(self.timefmt)
|
||||||
mi = MetaInformation(title, [__appname__])
|
mi = MetaInformation(title, [__appname__])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user