Implement three simple policy for download data requests. I think it might be possible to replace all this code with a right configuration of NSURLRequest.
This commit is contained in:
1 parent
d9b7af3474
commit
1e6a4f57b3
8 files changed
+36
-25
No files matched your search
@@ -270,7 +270,7 @@ static NSString *fileType = @"mp4";
|
||||
|
||||
- (MP42Image *)loadArtwork:(NSURL*)url
|
||||
{
|
||||
NSData *artworkData = [MetadataImporter downloadDataOrGetFromCache:url];
|
||||
NSData *artworkData = [MetadataImporter downloadDataFromURL:url withCachePolicy:SBDefaultPolicy];
|
||||
if (artworkData && [artworkData length]) {
|
||||
MP42Image *artwork = [[MP42Image alloc] initWithData:artworkData type:MP42_ART_JPEG];
|
||||
if (artwork != nil) {
|
||||
|
||||
Reference in new issue
Block a user