diff options
author | waker <wakeroid@gmail.com> | 2011-03-18 23:09:36 +0100 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2011-03-18 23:09:36 +0100 |
commit | 152958d9a61f1d39a28b8aa294322c193568f68b (patch) | |
tree | fb8b2ba911961fcce3160a2531e302d6f5b59694 /plugins/artwork | |
parent | 2597b5e4782759de3db8ccb422e580c0355e943c (diff) |
fixed album art cache folder when XDG_CACHE_HOME is unset
Diffstat (limited to 'plugins/artwork')
-rw-r--r-- | plugins/artwork/artwork.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/artwork/artwork.c b/plugins/artwork/artwork.c index 45179edb..af154c97 100644 --- a/plugins/artwork/artwork.c +++ b/plugins/artwork/artwork.c @@ -62,10 +62,10 @@ make_cache_dir_path (char *path, int size, const char *artist, int img_size) { int sz; if (img_size == -1) { - sz = snprintf (path, size, "%s/deadbeef/covers/", cache ? cache : getenv ("HOME")); + sz = snprintf (path, size, cache ? "%s/deadbeef/covers/" : "%s/.cache/deadbeef/covers/", cache ? cache : getenv ("HOME")); } else { - sz = snprintf (path, size, "%s/deadbeef/covers-%d/", cache ? cache : getenv ("HOME"), img_size); + sz = snprintf (path, size, cache ? "%s/deadbeef/covers-%d/" : "%s/.cache/deadbeef/covers-%d/", cache ? cache : getenv ("HOME"), img_size); } path += sz; |