mirror of
https://github.com/spl0k/supysonic.git
synced 2024-11-10 04:02:17 +00:00
Fix for cache folder set as relative path
This commit is contained in:
parent
62bcce331a
commit
da4cde77e1
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user