Fix iTunes Store artworks.

This commit is contained in:
Damiano Galassi committed 2015-11-08 10:00:28 +01:00
1 parent 70dc65fbfa
commit 7616f03085
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -380,7 +380,7 @@ NSInteger sortMP42Metadata(id ep1, id ep2, void *context)
[metadata setArtworkThumbURLs: artworkThumbURLs];
[artworkThumbURLs release];
artworkString = [artworkString stringByReplacingOccurrencesOfString:@"100x100bb-85" withString:@"2100x2100bb-92"];
artworkString = [artworkString stringByReplacingOccurrencesOfString:@"100x100bb" withString:@"10000x10000bb"];
NSMutableArray *artworkFullsizeURLs = [[NSMutableArray alloc] initWithCapacity:1];
[artworkFullsizeURLs addObject:[NSURL URLWithString:artworkString]];
[metadata setArtworkFullsizeURLs: artworkFullsizeURLs];
+1 -1
View File
@@ -371,7 +371,7 @@
NSString *provider = providerNames[idx];
if ([provider isEqualToString:@"iTunes"]) {
NSURL *url = URLs[idx];
url = [[url URLByDeletingPathExtension] URLByAppendingPathExtension:@"600x600bb-85.jpg"];
url = [[url URLByDeletingPathExtension] URLByAppendingPathExtension:@"600x600bb.jpg"];
artworkData = [MetadataImporter downloadDataFromURL:url withCachePolicy:SBDefaultPolicy];
}
}