Refactor the artworks urls code so we don't have to update three different arrays each time.

This commit is contained in:
Damiano Galassi committed 2017-05-27 19:01:04 +02:00
1 parent daa7fc3604
commit 0d3b0ea3ec
12 files changed
+155 -120

No files matched your search

+1 -3
View File
@@ -560,9 +560,7 @@ static NSInteger sortSBMetadataResult(id ep1, id ep2, void *context)
}
if (artworkURL && artworkFullSizeURL) {
metadata.artworkThumbURLs = @[artworkURL];
metadata.artworkFullsizeURLs = @[artworkFullSizeURL];
metadata.artworkProviderNames = @[@"iTunes"];
metadata.remoteArtworks = @[[SBRemoteImage remoteImageWithURL:artworkFullSizeURL thumbURL:artworkURL providerName:@"iTunes"]];
}
}