Refactor the artworks urls code so we don't have to update three different arrays each time.

This commit is contained in:
Damiano Galassi committed 2017-05-27 19:01:04 +02:00
1 parent daa7fc3604
commit 0d3b0ea3ec
12 files changed
+155 -120

No files matched your search

+2 -3
View File
@@ -7,6 +7,7 @@
//
#import <Foundation/Foundation.h>
#import "SBRemoteImage.h"
NS_ASSUME_NONNULL_BEGIN
@@ -68,9 +69,7 @@ extern NSString *const SBMetadataResultNetwork;
@property (nonatomic, readonly) NSMutableArray<MP42Image *> *artworks;
@property (nonatomic, readwrite, strong, nullable) NSArray<NSURL *> *artworkThumbURLs;
@property (nonatomic, readwrite, strong, nullable) NSArray<NSURL *> *artworkFullsizeURLs;
@property (nonatomic, readwrite, strong, nullable) NSArray<NSString *> *artworkProviderNames;
@property (nonatomic, readwrite, nullable) NSArray<SBRemoteImage *> *remoteArtworks;
- (MP42Metadata *)metadataUsingMap:(SBMetadataResultMap *)map keepEmptyKeys:(BOOL)keep;