summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhorchi <vdr@jwendel.de>2020-02-12 13:23:01 +0100
committerhorchi <vdr@jwendel.de>2020-02-12 13:23:01 +0100
commit9ace5a57b0e8ced5db6163a6c2360d931c081437 (patch)
treea97d0bdfc5c16879c8c16b4735500a9d522d29c3
parent5ed9f308906f88080509e9d8322ef451430ecfbe (diff)
downloadvdr-plugin-epg2vdr-9ace5a57b0e8ced5db6163a6c2360d931c081437.tar.gz
vdr-plugin-epg2vdr-9ace5a57b0e8ced5db6163a6c2360d931c081437.tar.bz2
improved cleanup of pictures
-rw-r--r--update.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/update.c b/update.c
index 681bb25..afa99fc 100644
--- a/update.c
+++ b/update.c
@@ -2007,6 +2007,7 @@ int cUpdate::cleanupPictures()
char* pdir;
int iCount = 0;
int lCount = 0;
+ int lwCount = 0;
imageRefDb->countWhere("", iCount);
@@ -2136,14 +2137,14 @@ int cUpdate::cleanupPictures()
if (isLink(pdir) && (fullreload || !fileExists(pdir)))
{
if (!removeFile(pdir))
- lCount++;
+ lwCount++;
}
free(pdir);
}
closedir(dir);
- tell(1, "Cleanup finished, removed (%d) images and (%d) symlinks", iCount, lCount);
+ tell(1, "Cleanup finished, removed (%d) images, (%d) symlinks and (%d) broken symlinks", iCount, lCount, lwCount);
return success;
}