mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-30 18:45:37 +01:00
Fix bug in calibre content server that would cause it to not work if yur library has books with blank author fields
This commit is contained in:
parent
241a2fc099
commit
6c31b9aea9
1 changed files with 1 additions and 1 deletions
|
|
@ -337,7 +337,7 @@ def library(self, start='0', num='50', sort=None, search=None,
|
|||
|
||||
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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue