int count = 0;
while( (f=miner.next()) != null) {
try {
if (f.getName().matches(".*[mM][pP]3")) {
SongData songData = new SongData(f);
Song song = songManager.saveSong(songData);
count++;
log.debug("Saved: " + song.getName() + " ("+song.getId() +")"+
", " + song.getAlbum().getName() +
", " + song.getArtist().getName() +
", " + song.getGenre().getName());
}
} catch (SongDataException sdE) {
log.error("Could not process file: " +f.getAbsolutePath());
}
if (count % 100 == 0) log.debug("Count " + count);