cover fallback
This commit is contained in:
parent
106ae904c3
commit
7ab27db0dd
1 changed files with 1 additions and 1 deletions
|
@ -837,13 +837,13 @@ def update_sort_table():
|
|||
|
||||
def download_cover(id):
|
||||
key = 'cover:%s' % id
|
||||
cover = None
|
||||
with db.session():
|
||||
i = Item.get(id)
|
||||
if i:
|
||||
url = i.meta.get('cover')
|
||||
else:
|
||||
url = None
|
||||
cover = None
|
||||
|
||||
logger.debug('download cover %s %s', id, url)
|
||||
ratio = None
|
||||
|
|
Loading…
Reference in a new issue