Initial implementation of thetvdb json api.
This commit is contained in:
1 parent
206ed00596
commit
964c171e1e
12 files changed
+384
-172
No files matched your search
@@ -423,7 +423,7 @@
|
||||
dispatch_async(dispatch_get_global_queue(0, 0), ^{
|
||||
|
||||
[indexes enumerateIndexesUsingBlock:^(NSUInteger idx, BOOL *stop) {
|
||||
NSData *artworkData = [SBMetadataHelper downloadDataFromURL:URLs[idx] withCachePolicy:SBDefaultPolicy];
|
||||
NSData *artworkData = [SBMetadataHelper downloadDataFromURL:URLs[idx] cachePolicy:SBDefaultPolicy];
|
||||
|
||||
// Hack, download smaller iTunes version if big iTunes version is not available
|
||||
if (!artworkData) {
|
||||
@@ -431,7 +431,7 @@
|
||||
if ([provider isEqualToString:@"iTunes"]) {
|
||||
NSURL *url = URLs[idx];
|
||||
url = [url.URLByDeletingPathExtension URLByAppendingPathExtension:@"600x600bb.jpg"];
|
||||
artworkData = [SBMetadataHelper downloadDataFromURL:url withCachePolicy:SBDefaultPolicy];
|
||||
artworkData = [SBMetadataHelper downloadDataFromURL:url cachePolicy:SBDefaultPolicy];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user