Refactor the artworks urls code so we don't have to update three different arrays each time.
This commit is contained in:
1 parent
daa7fc3604
commit
0d3b0ea3ec
12 files changed
+155
-120
No files matched your search
@@ -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"]];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user