Pull JSON feed from web page metadata (along with RSS and Atom, which already worked).
This commit is contained in:
parent
23af6b4d29
commit
fce95bb5b6
@ -28,6 +28,7 @@ static NSString *kRelKey = @"rel";
|
|||||||
static NSString *kAlternateKey = @"alternate";
|
static NSString *kAlternateKey = @"alternate";
|
||||||
static NSString *kRSSSuffix = @"/rss+xml";
|
static NSString *kRSSSuffix = @"/rss+xml";
|
||||||
static NSString *kAtomSuffix = @"/atom+xml";
|
static NSString *kAtomSuffix = @"/atom+xml";
|
||||||
|
static NSString *kJSONSuffix = @"/json";
|
||||||
static NSString *kTypeKey = @"type";
|
static NSString *kTypeKey = @"type";
|
||||||
|
|
||||||
@interface RSHTMLMetadataAppleTouchIcon ()
|
@interface RSHTMLMetadataAppleTouchIcon ()
|
||||||
@ -202,7 +203,7 @@ static NSArray *objectsOfClassWithDictionaries(Class class, NSArray *dictionarie
|
|||||||
static BOOL typeIsFeedType(NSString *type) {
|
static BOOL typeIsFeedType(NSString *type) {
|
||||||
|
|
||||||
type = type.lowercaseString;
|
type = type.lowercaseString;
|
||||||
return [type hasSuffix:kRSSSuffix] || [type hasSuffix:kAtomSuffix];
|
return [type hasSuffix:kRSSSuffix] || [type hasSuffix:kAtomSuffix] || [type hasSuffix:kJSONSuffix];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user