cover fallback

This commit is contained in:
j 2019-02-01 18:46:07 +05:30
parent 106ae904c3
commit 7ab27db0dd

View file

@ -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