From 6c31b9aea988f869244a868b29a19b2cbe7c5982 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 21 Apr 2009 15:03:14 -0700 Subject: [PATCH] Fix bug in calibre content server that would cause it to not work if yur library has books with blank author fields --- src/calibre/library/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/library/server.py b/src/calibre/library/server.py index 8e9b6278d8..26788bcf6d 100644 --- a/src/calibre/library/server.py +++ b/src/calibre/library/server.py @@ -337,7 +337,7 @@ class LibraryServer(object): book, books = MarkupTemplate(self.BOOK), [] for record in items[start:start+num]: - aus = record[2] if record[2] else _('Unknown') + aus = record[2] if record[2] else __builtins__._('Unknown') authors = '|'.join([i.replace('|', ',') for i in aus.split(',')]) books.append(book.generate(r=record, authors=authors).render('xml').decode('utf-8')) updated = self.db.last_modified()