From 5ebe1b869b960078cbb26c0b90a848be9800ff18 Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Sat, 5 Jul 2014 21:49:56 +0200 Subject: fixed artwork cache resetting in multiple places (bug #1143) --- plugins/artwork/artwork.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/artwork/artwork.c') diff --git a/plugins/artwork/artwork.c b/plugins/artwork/artwork.c index e69c61e4..32cd1b96 100644 --- a/plugins/artwork/artwork.c +++ b/plugins/artwork/artwork.c @@ -122,7 +122,7 @@ static time_t artwork_reset_time; static char artwork_filemask[200]; static const char *get_default_cover (void) { -return default_cover; + return default_cover; } static int @@ -1387,7 +1387,7 @@ find_image (const char *path) { // invalidate cache every 2 days if ((cache_period > 0 && (tm - stat_buf.st_mtime > cache_period * 60 * 60)) || artwork_reset_time > stat_buf.st_mtime) { - trace ("reloading cached file %s\n", path); + trace ("deleting cached file %s\n", path); unlink (path); return NULL; } -- cgit v1.2.3