|
|
@ -97,12 +97,12 @@ public class MusicFolderSettingsController { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void expunge() { |
|
|
|
private void expunge() { |
|
|
|
LOG.info("Cleaning database..."); |
|
|
|
LOG.debug("Cleaning database..."); |
|
|
|
LOG.info("Deleting non-present artists..."); |
|
|
|
LOG.debug("Deleting non-present artists..."); |
|
|
|
artistDao.expunge(); |
|
|
|
artistDao.expunge(); |
|
|
|
LOG.info("Deleting non-present albums..."); |
|
|
|
LOG.debug("Deleting non-present albums..."); |
|
|
|
albumDao.expunge(); |
|
|
|
albumDao.expunge(); |
|
|
|
LOG.info("Deleting non-present media files..."); |
|
|
|
LOG.debug("Deleting non-present media files..."); |
|
|
|
mediaFileDao.expunge(); |
|
|
|
mediaFileDao.expunge(); |
|
|
|
LOG.debug("Database cleanup complete."); |
|
|
|
LOG.debug("Database cleanup complete."); |
|
|
|
mediaFileDao.checkpoint(); |
|
|
|
mediaFileDao.checkpoint(); |
|
|
|