diff options
author | horchi <vdr@jwendel.de> | 2020-02-12 13:23:01 +0100 |
---|---|---|
committer | horchi <vdr@jwendel.de> | 2020-02-12 13:23:01 +0100 |
commit | 9ace5a57b0e8ced5db6163a6c2360d931c081437 (patch) | |
tree | a97d0bdfc5c16879c8c16b4735500a9d522d29c3 | |
parent | 5ed9f308906f88080509e9d8322ef451430ecfbe (diff) | |
download | vdr-plugin-epg2vdr-9ace5a57b0e8ced5db6163a6c2360d931c081437.tar.gz vdr-plugin-epg2vdr-9ace5a57b0e8ced5db6163a6c2360d931c081437.tar.bz2 |
improved cleanup of pictures
-rw-r--r-- | update.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; } |