|
|
@ -151,9 +151,10 @@ public class MediaScannerService { |
|
|
|
|
|
|
|
|
|
|
|
private void doScanLibrary() { |
|
|
|
private void doScanLibrary() { |
|
|
|
LOG.info("Starting to scan media library."); |
|
|
|
LOG.info("Starting to scan media library."); |
|
|
|
|
|
|
|
Date lastScanned = DateUtils.truncate(new Date(), Calendar.SECOND); |
|
|
|
|
|
|
|
LOG.debug("New last scan date is " + lastScanned); |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
Date lastScanned = DateUtils.truncate(new Date(), Calendar.SECOND); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Maps from artist name to album count.
|
|
|
|
// Maps from artist name to album count.
|
|
|
|
Map<String, Integer> albumCount = new HashMap<String, Integer>(); |
|
|
|
Map<String, Integer> albumCount = new HashMap<String, Integer>(); |
|
|
|