fix icon fallback
This commit is contained in:
parent
7e7478be30
commit
8279a55785
1 changed files with 3 additions and 2 deletions
|
@ -98,11 +98,12 @@ def get_icon(app, id, type_, size, callback):
|
|||
callback(str(data))
|
||||
return
|
||||
key = '%s:%s' % (type_, id)
|
||||
if not icons[key]:
|
||||
data = icons[key]
|
||||
if not data:
|
||||
type_ = 'preview' if type_ == 'cover' else 'cover'
|
||||
key = '%s:%s' % (type_, id)
|
||||
if size:
|
||||
skey = '%s:%s:%s' % (type_, id, size)
|
||||
data = None
|
||||
if size:
|
||||
data = icons[skey]
|
||||
if data:
|
||||
|
|
Loading…
Reference in a new issue