Remember the preferred artwork type in the ArtworkSelectorController

This commit is contained in:
Damiano Galassi committed 2017-08-06 20:24:20 +02:00
1 parent daa41aad63
commit b10c99ba58
10 files changed
+104 -61

No files matched your search

+5 -4
View File
@@ -45,21 +45,22 @@ NSString *const SBMetadataResultNetwork = @"{Network}";
@implementation SBRemoteImage
- (instancetype)initWithURL:(NSURL *)fullSizeURL thumbURL:(NSURL *)thumbURL providerName:(NSString *)providerName
- (instancetype)initWithURL:(NSURL *)fullSizeURL thumbURL:(NSURL *)thumbURL service:(NSString *)service type:(NSString *)type
{
self = [super init];
if (self)
{
_URL = fullSizeURL;
_thumbURL = thumbURL;
_providerName = providerName;
_service = service;
_type = type;
}
return self;
}
+ (instancetype)remoteImageWithURL:(NSURL *)fullSizeURL thumbURL:(NSURL *)thumbURL providerName:(NSString *)providerName
+ (instancetype)remoteImageWithURL:(NSURL *)fullSizeURL thumbURL:(NSURL *)thumbURL service:(NSString *)service type:(NSString *)type
{
return [[self alloc] initWithURL:fullSizeURL thumbURL:thumbURL providerName:providerName];
return [[self alloc] initWithURL:fullSizeURL thumbURL:thumbURL service:service type:type];
}
@end