Permalink
Browse files

Don't load the mime-type of the cover image, as NSImage doesn't need …

…it to parse the data.
  • Loading branch information...
jaketmp committed Mar 19, 2012
1 parent ac7f7f2 commit 671f935daecf58a2f05ef4a29c42e26e11b91936
Showing with 3 additions and 3 deletions.
  1. +3 −3 JTPepub/JTPepub.m
View
@@ -428,7 +428,7 @@ - (NSImage *)cover
NSError *xmlError = nil;
NSString *coverPath = nil;
- NSString *coverMIME = nil;
+ //NSString *coverMIME = nil;
/*
* Branch based on epub version, if epub3, look for 'properties="cover-image"'
@@ -447,7 +447,7 @@ - (NSImage *)cover
// There may only be one "cover-image" so take the last element of the array.
coverPath = [[[metaElements lastObject] attributeForName:@"href"] stringValue];
- coverMIME = [[[metaElements lastObject] attributeForName:@"media-type"] stringValue];
+ //coverMIME = [[[metaElements lastObject] attributeForName:@"media-type"] stringValue];
}
@@ -494,7 +494,7 @@ - (NSImage *)cover
if([itemID caseInsensitiveCompare:coverID] == NSOrderedSame) {
coverPath = [[item attributeForName:@"href"] stringValue];
- coverMIME = [[item attributeForName:@"media-type"] stringValue];
+ //coverMIME = [[item attributeForName:@"media-type"] stringValue];
break;
}
}

0 comments on commit 671f935

Please sign in to comment.