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:
Damiano Galassi committed 2013-12-20 14:53:24 +01:00
1 parent d9b7af3474
commit 1e6a4f57b3
8 files changed
+36 -25

No files matched your search

+1 -1
View File
@@ -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) {