Skip to content
This repository has been archived by the owner on Dec 28, 2022. It is now read-only.

Commit

Permalink
Fallback to iTunes if LastFm fetcher fails
Browse files Browse the repository at this point in the history
(cherry picked from commit 5116660)
  • Loading branch information
timusus committed Feb 27, 2019
1 parent 99f7615 commit 936186f
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ public InputStream loadData(Priority priority) throws Exception {
if (settingsManager.preferLastFM()) {
dataFetcher = new LastFmFetcher(artworkProvider);
inputStream = loadData(dataFetcher, priority);
if (inputStream == null) {
dataFetcher = new ItunesFetcher(artworkProvider);
inputStream = loadData(dataFetcher, priority);
}
} else {
dataFetcher = new ItunesFetcher(artworkProvider);
inputStream = loadData(dataFetcher, priority);
Expand Down

0 comments on commit 936186f

Please sign in to comment.