mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Fix unicode problem in getting list of books
This commit is contained in:
parent
d419f3f23b
commit
00ae3e2193
@ -74,8 +74,8 @@ class FindBooks(ContentHandler):
|
|||||||
dict.__init__(self, src)
|
dict.__init__(self, src)
|
||||||
if not self.has_key("author") or len(self["author"].rstrip()) == 0:
|
if not self.has_key("author") or len(self["author"].rstrip()) == 0:
|
||||||
self["author"] = u"Unknown"
|
self["author"] = u"Unknown"
|
||||||
self["title"] = unicode(self["title"].strip())
|
self["title"] = self["title"].strip()
|
||||||
self["author"] = unicode(self["author"])
|
self["author"] = self["author"]
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return self["title"] + " by " + self["author"] + " at " + self["path"]
|
return self["title"] + " by " + self["author"] + " at " + self["path"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user