Prefer Apple touch icons to other feed icons.

This commit is contained in:
Brent Simmons
2017-11-26 20:40:07 -08:00
parent 4e50529b16
commit 6c36107320
4 changed files with 41 additions and 5 deletions

View File

@@ -234,6 +234,16 @@ static BOOL typeIsFeedType(NSString *type) {
_sizes = [d rsparser_objectForCaseInsensitiveKey:kSizesKey];
_rel = [d rsparser_objectForCaseInsensitiveKey:kRelKey];
_size = CGSizeZero;
if (_sizes) {
NSArray *components = [_sizes componentsSeparatedByString:@"x"];
if (components.count == 2) {
CGFloat width = [components[0] floatValue];
CGFloat height = [components[1] floatValue];
_size = CGSizeMake(width, height);
}
}
return self;
}