|
|
|
@ -23,16 +23,15 @@ import com.google.common.base.Function; |
|
|
|
|
import com.google.common.base.Predicates; |
|
|
|
|
import com.google.common.collect.FluentIterable; |
|
|
|
|
import com.google.common.collect.Lists; |
|
|
|
|
import de.umass.lastfm.*; |
|
|
|
|
import de.umass.lastfm.Album; |
|
|
|
|
import de.umass.lastfm.Artist; |
|
|
|
|
import de.umass.lastfm.Caller; |
|
|
|
|
import de.umass.lastfm.ImageSize; |
|
|
|
|
import de.umass.lastfm.Track; |
|
|
|
|
import org.apache.commons.lang.StringUtils; |
|
|
|
|
import org.libresonic.player.Logger; |
|
|
|
|
import org.libresonic.player.dao.ArtistDao; |
|
|
|
|
import org.libresonic.player.dao.MediaFileDao; |
|
|
|
|
import org.libresonic.player.domain.*; |
|
|
|
|
import org.slf4j.Logger; |
|
|
|
|
import org.slf4j.LoggerFactory; |
|
|
|
|
|
|
|
|
|
import java.io.File; |
|
|
|
|
import java.io.IOException; |
|
|
|
@ -50,7 +49,7 @@ public class LastFmService { |
|
|
|
|
|
|
|
|
|
private static final String LAST_FM_KEY = "ece4499898a9440896dfdce5dab26bbf"; |
|
|
|
|
private static final long CACHE_TIME_TO_LIVE_MILLIS = 6 * 30 * 24 * 3600 * 1000L; // 6 months
|
|
|
|
|
private static final Logger LOG = Logger.getLogger(LastFmService.class); |
|
|
|
|
private static final Logger LOG = LoggerFactory.getLogger(LastFmService.class); |
|
|
|
|
|
|
|
|
|
private MediaFileDao mediaFileDao; |
|
|
|
|
private MediaFileService mediaFileService; |
|
|
|
|