Fix #1710 (Problem when starting the content server)

This commit is contained in:
Kovid Goyal 2009-01-27 09:46:16 -08:00
parent cc059c06ae
commit 1e5c0a7d2e

View File

@ -312,7 +312,8 @@ class LibraryServer(object):
book, books = MarkupTemplate(self.BOOK), []
for record in items[start:start+num]:
authors = '|'.join([i.replace('|', ',') for i in record[2].split(',')])
aus = record[2] if record[2] else _('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()