From 74fba8840e2fee393a96d8ecfb9e4a75bbe3e771 Mon Sep 17 00:00:00 2001 From: Taizo Simpson Date: Tue, 9 Oct 2018 16:37:00 -0400 Subject: [PATCH] Fixed error when shrinking a cached embeded cover --- supysonic/api/media.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/supysonic/api/media.py b/supysonic/api/media.py index 033895b..842ee81 100644 --- a/supysonic/api/media.py +++ b/supysonic/api/media.py @@ -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):