Refactored some code
This commit is contained in:
1 parent
76ce1e5ebb
commit
91fd1c0542
9 files changed
+39
-29
No files matched your search
@@ -6,21 +6,25 @@
|
||||
// Copyright 2011 Douglas Stebila. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Cocoa/Cocoa.h>
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
#import "MetadataImporter.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface iTunesStore : MetadataImporter
|
||||
|
||||
#pragma mark iTunes stores
|
||||
+ (NSDictionary *) getStoreFor:(NSString *)aLanguageString;
|
||||
+ (NSDictionary * __nullable) getStoreFor:(NSString *)aLanguageString;
|
||||
|
||||
#pragma mark Quick iTunes search for metadata
|
||||
+ (MP42Metadata *) quickiTunesSearchTV:(NSString *)aSeriesName episodeTitle:(NSString *)aEpisodeTitle;
|
||||
+ (MP42Metadata *) quickiTunesSearchMovie:(NSString *)aMovieName;
|
||||
|
||||
#pragma mark Parse results
|
||||
+ (NSArray *) readPeople:(NSString *)aPeople fromXML:(NSXMLDocument *)aXml;
|
||||
+ (NSArray *) metadataForResults:(NSDictionary *)dict store:(NSDictionary *)store;
|
||||
+ (NSArray<NSString *> *) readPeople:(NSString *)aPeople fromXML:(NSXMLDocument *)aXml;
|
||||
+ (NSArray<MP42Metadata *> *) metadataForResults:(NSDictionary *)dict store:(NSDictionary *)store;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
@@ -286,7 +286,7 @@ NSInteger sortMP42Metadata(id ep1, id ep2, void *context)
|
||||
}
|
||||
}
|
||||
}
|
||||
return nil;
|
||||
return @[];
|
||||
}
|
||||
|
||||
+ (NSArray *) metadataForResults:(NSDictionary *)dict store:(NSDictionary *)store {
|
||||
|
||||
Reference in new issue
Block a user