X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/0e46bb2843680717d6708f7bff585dd7d37f185d..941b8e6effd4c0ffff52fa7e548d866f8454dddb:/librarian/cover.py diff --git a/librarian/cover.py b/librarian/cover.py index e7a8e1b..c345a50 100644 --- a/librarian/cover.py +++ b/librarian/cover.py @@ -232,6 +232,8 @@ class WLCover(Cover): bar_width = 35 background_color = '#444' author_color = '#444' + default_background = get_resource('res/cover.png') + format = 'JPEG' epochs = { u'Starożytność': 0, @@ -257,6 +259,8 @@ class WLCover(Cover): bg_src = urlopen(book_info.cover_url) self.background_img = StringIO(bg_src.read()) bg_src.close() + else: + self.background_img = self.default_background def pretty_author(self): return self.author.upper()