@classmethod
def cover_thumb(cls, book):
return MEDIA_BASE + default.backend.get_thumbnail(
- book.cover, "139x193").url
+ book.cover, "139x193").url if book.cover else ''
return rc.NOT_FOUND
+class EBooksHandler(AnonymousBooksHandler):
+ fields = ('author', 'href', 'title', 'cover') + tuple(Book.ebook_formats)
+
+
# add categorized tags fields for Book
def _tags_getter(category):
@classmethod