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))
|
callback(str(data))
|
||||||
return
|
return
|
||||||
key = '%s:%s' % (type_, id)
|
key = '%s:%s' % (type_, id)
|
||||||
if not icons[key]:
|
data = icons[key]
|
||||||
|
if not data:
|
||||||
type_ = 'preview' if type_ == 'cover' else 'cover'
|
type_ = 'preview' if type_ == 'cover' else 'cover'
|
||||||
|
key = '%s:%s' % (type_, id)
|
||||||
if size:
|
if size:
|
||||||
skey = '%s:%s:%s' % (type_, id, size)
|
skey = '%s:%s:%s' % (type_, id, size)
|
||||||
data = None
|
|
||||||
if size:
|
if size:
|
||||||
data = icons[skey]
|
data = icons[skey]
|
||||||
if data:
|
if data:
|
||||||
|
|
Loading…
Reference in a new issue