mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-06 21:45:03 +01:00
Fix unicode problem in getting list of books
This commit is contained in:
parent
d419f3f23b
commit
00ae3e2193
1 changed files with 2 additions and 2 deletions
|
|
@ -74,8 +74,8 @@ def __init__(self, src):
|
||||||
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…
Reference in a new issue