mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1710 (Problem when starting the content server)
This commit is contained in:
parent
cc059c06ae
commit
1e5c0a7d2e
@ -312,7 +312,8 @@ class LibraryServer(object):
|
|||||||
|
|
||||||
book, books = MarkupTemplate(self.BOOK), []
|
book, books = MarkupTemplate(self.BOOK), []
|
||||||
for record in items[start:start+num]:
|
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'))
|
books.append(book.generate(r=record, authors=authors).render('xml').decode('utf-8'))
|
||||||
updated = self.db.last_modified()
|
updated = self.db.last_modified()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user