fnp
/
librarian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lightier cover
[librarian.git]
/
librarian
/
cover.py
diff --git
a/librarian/cover.py
b/librarian/cover.py
index
f93e709
..
53d59bd
100644
(file)
--- a/
librarian/cover.py
+++ b/
librarian/cover.py
@@
-118,7
+118,7
@@
class Cover(object):
}
def __init__(self, book_info):
}
def __init__(self, book_info):
- self.author =
book_info.author.readable(
)
+ self.author =
", ".join(auth.readable() for auth in book_info.authors
)
self.title = book_info.title
def pretty_author(self):
self.title = book_info.title
def pretty_author(self):
@@
-192,6
+192,8
@@
class WLCover(Cover):
bar_width = 35
background_color = '#444'
author_color = '#444'
bar_width = 35
background_color = '#444'
author_color = '#444'
+ default_background = get_resource('res/webtreatsetc-5647576127-ccby.png')
+ format = 'JPEG'
epochs = {
u'Starożytność': 0,
epochs = {
u'Starożytność': 0,
@@
-217,6
+219,8
@@
class WLCover(Cover):
bg_src = urlopen(book_info.cover_url)
self.background_img = StringIO(bg_src.read())
bg_src.close()
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()
def pretty_author(self):
return self.author.upper()