mirror of
https://github.com/spl0k/supysonic.git
synced 2024-12-23 01:16:18 +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