From da4cde77e19771528d62a0ee04882bf3a58ec1bc Mon Sep 17 00:00:00 2001 From: spl0k Date: Sat, 14 Oct 2017 14:25:32 +0200 Subject: [PATCH] Fix for cache folder set as relative path --- 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 efb59b1d..a5e62450 100644 --- a/supysonic/api/media.py +++ b/supysonic/api/media.py @@ -154,7 +154,7 @@ def cover_art(): return send_file(os.path.join(res.path, 'cover.jpg')) size_path = os.path.join(config.get('webapp', 'cache_dir'), str(size)) - path = os.path.join(size_path, str(res.id)) + path = os.path.abspath(os.path.join(size_path, str(res.id))) if os.path.exists(path): return send_file(path) if not os.path.exists(size_path):