1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-11-10 04:02:17 +00:00

Fixed error when shrinking a cached embeded cover

This commit is contained in:
Taizo Simpson 2018-10-09 16:37:00 -04:00
parent f43fecaf34
commit 74fba8840e
No known key found for this signature in database
GPG Key ID: D197B1197B2D4D68

View File

@ -164,7 +164,7 @@ def cover_art():
return send_file(cover_path)
size_path = os.path.join(current_app.config['WEBAPP']['cache_dir'], str(size))
path = os.path.abspath(os.path.join(size_path, str(res.id)))
path = os.path.abspath(os.path.join(size_path, eid))
if os.path.exists(path):
return send_file(path, mimetype = 'image/' + im.format.lower())
if not os.path.exists(size_path):