Added two popups to select the movie/tvshow provider in the queue.
This commit is contained in:
1 parent
819763eab2
commit
e50b060828
10 files changed
+224
-35
No files matched your search
@@ -27,7 +27,9 @@ typedef enum SBCachePolicy : NSUInteger {
|
|||||||
+ (NSString *) urlEncoded:(NSString *)s;
|
+ (NSString *) urlEncoded:(NSString *)s;
|
||||||
+ (NSData *)downloadDataFromURL:(NSURL *)url withCachePolicy:(SBCachePolicy)policy;
|
+ (NSData *)downloadDataFromURL:(NSURL *)url withCachePolicy:(SBCachePolicy)policy;
|
||||||
|
|
||||||
#pragma mark Static methods
|
#pragma mark Class methods
|
||||||
|
+ (NSArray *) movieProviders;
|
||||||
|
+ (NSArray *) tvProviders;
|
||||||
+ (NSArray *) languagesForProvider:(NSString *)aProvider;
|
+ (NSArray *) languagesForProvider:(NSString *)aProvider;
|
||||||
+ (instancetype) importerForProvider:(NSString *)aProviderName;
|
+ (instancetype) importerForProvider:(NSString *)aProviderName;
|
||||||
+ (instancetype) defaultMovieProvider;
|
+ (instancetype) defaultMovieProvider;
|
||||||
|
|||||||
@@ -164,7 +164,14 @@
|
|||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
#pragma mark Static methods
|
#pragma mark Class methods
|
||||||
|
|
||||||
|
+ (NSArray *) movieProviders {
|
||||||
|
return @[@"TheMovieDB", @"iTunes Store"];
|
||||||
|
}
|
||||||
|
+ (NSArray *) tvProviders {
|
||||||
|
return @[@"TheTVDB", @"iTunes Store"];
|
||||||
|
}
|
||||||
|
|
||||||
+ (NSArray *) languagesForProvider:(NSString *)aProvider {
|
+ (NSArray *) languagesForProvider:(NSString *)aProvider {
|
||||||
MetadataImporter *m = [MetadataImporter importerForProvider:aProvider];
|
MetadataImporter *m = [MetadataImporter importerForProvider:aProvider];
|
||||||
|
|||||||
@@ -7,7 +7,6 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
#import "SBItemViewController.h"
|
#import "SBItemViewController.h"
|
||||||
|
|
||||||
#import "SBQueueItem.h"
|
#import "SBQueueItem.h"
|
||||||
|
|
||||||
static void *SBItemViewContex = &SBItemViewContex;
|
static void *SBItemViewContex = &SBItemViewContex;
|
||||||
|
|||||||
@@ -15,6 +15,10 @@
|
|||||||
NSMutableDictionary *_options;
|
NSMutableDictionary *_options;
|
||||||
NSMutableArray *_sets;
|
NSMutableArray *_sets;
|
||||||
|
|
||||||
|
NSArray *_moviesProviders;
|
||||||
|
NSArray *_tvShowsProviders;
|
||||||
|
NSArray *_languages;
|
||||||
|
|
||||||
NSURL *_destination;
|
NSURL *_destination;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -10,12 +10,19 @@
|
|||||||
#import "SBPresetManager.h"
|
#import "SBPresetManager.h"
|
||||||
|
|
||||||
#import <MP42Foundation/MP42Metadata.h>
|
#import <MP42Foundation/MP42Metadata.h>
|
||||||
|
#import <MP42Foundation/MP42Languages.h>
|
||||||
|
|
||||||
|
#import "MetadataImporter.h"
|
||||||
|
|
||||||
@interface SBOptionsViewController ()
|
@interface SBOptionsViewController ()
|
||||||
|
|
||||||
@property (nonatomic) NSMutableDictionary *options;
|
@property (nonatomic) NSMutableDictionary *options;
|
||||||
@property (nonatomic, retain) NSMutableArray *sets;
|
@property (nonatomic, retain) NSMutableArray *sets;
|
||||||
|
|
||||||
|
@property (nonatomic, retain) NSArray *moviesProviders;
|
||||||
|
@property (nonatomic, retain) NSArray *tvShowsProviders;
|
||||||
|
@property (nonatomic, retain) NSArray *languages;
|
||||||
|
|
||||||
- (IBAction)chooseDestination:(id)sender;
|
- (IBAction)chooseDestination:(id)sender;
|
||||||
- (IBAction)destination:(id)sender;
|
- (IBAction)destination:(id)sender;
|
||||||
|
|
||||||
@@ -27,6 +34,9 @@
|
|||||||
|
|
||||||
@synthesize options = _options;
|
@synthesize options = _options;
|
||||||
@synthesize sets = _sets;
|
@synthesize sets = _sets;
|
||||||
|
@synthesize moviesProviders = _moviesProviders;
|
||||||
|
@synthesize tvShowsProviders = _tvShowsProviders;
|
||||||
|
@synthesize languages = _languages;
|
||||||
|
|
||||||
@synthesize destination = _destination;
|
@synthesize destination = _destination;
|
||||||
|
|
||||||
@@ -35,6 +45,10 @@
|
|||||||
if (self) {
|
if (self) {
|
||||||
_options = [options retain];
|
_options = [options retain];
|
||||||
_sets = [[NSMutableArray alloc] init];
|
_sets = [[NSMutableArray alloc] init];
|
||||||
|
_moviesProviders = [[MetadataImporter movieProviders] retain];
|
||||||
|
_tvShowsProviders = [[MetadataImporter tvProviders] retain];
|
||||||
|
_languages = [[[MP42Languages defaultManager] languages] retain];
|
||||||
|
|
||||||
}
|
}
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
@@ -160,6 +174,9 @@
|
|||||||
[_sets release];
|
[_sets release];
|
||||||
[_destination release];
|
[_destination release];
|
||||||
|
|
||||||
|
[_moviesProviders release];
|
||||||
|
[_tvShowsProviders release];
|
||||||
|
|
||||||
[super dealloc];
|
[super dealloc];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+26
-2
@@ -11,22 +11,46 @@
|
|||||||
@class SBQueueItem;
|
@class SBQueueItem;
|
||||||
@class MP42Metadata;
|
@class MP42Metadata;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* SBQueue actions protocol, actions can be run by
|
||||||
|
* the queue's items.
|
||||||
|
*/
|
||||||
@protocol SBQueueActionProtocol <NSObject, NSCoding>
|
@protocol SBQueueActionProtocol <NSObject, NSCoding>
|
||||||
- (void)runAction:(SBQueueItem *)item;
|
- (void)runAction:(SBQueueItem *)item;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@interface SBQueueMetadataAction : NSObject <SBQueueActionProtocol>
|
/**
|
||||||
|
* An actions that fetches metadata online.
|
||||||
|
*/
|
||||||
|
@interface SBQueueMetadataAction : NSObject <SBQueueActionProtocol> {
|
||||||
|
@private
|
||||||
|
NSString *_language;
|
||||||
|
NSString *_movieProvider;
|
||||||
|
NSString *_tvShowProvider;
|
||||||
|
}
|
||||||
|
- (instancetype)initWithLanguage:(NSString *)language
|
||||||
|
movieProvider:(NSString *)movieProvider
|
||||||
|
tvShowProvider:(NSString *)tvShowProvider;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An actions that search in the item source directory for additionals srt subtitles
|
||||||
|
*/
|
||||||
@interface SBQueueSubtitlesAction : NSObject <SBQueueActionProtocol>
|
@interface SBQueueSubtitlesAction : NSObject <SBQueueActionProtocol>
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An actions that applies a set to the item.
|
||||||
|
*/
|
||||||
@interface SBQueueSetAction : NSObject <SBQueueActionProtocol> {
|
@interface SBQueueSetAction : NSObject <SBQueueActionProtocol> {
|
||||||
@private
|
@private
|
||||||
MP42Metadata *_set;
|
MP42Metadata *_set;
|
||||||
}
|
}
|
||||||
- (id)initWithSet:(MP42Metadata *)set;
|
- (instancetype)initWithSet:(MP42Metadata *)set;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An actions that organize the item tracks' groups.
|
||||||
|
*/
|
||||||
@interface SBQueueOrganizeGroupsAction : NSObject <SBQueueActionProtocol>
|
@interface SBQueueOrganizeGroupsAction : NSObject <SBQueueActionProtocol>
|
||||||
@end
|
@end
|
||||||
+22
-2
@@ -77,6 +77,26 @@
|
|||||||
|
|
||||||
@implementation SBQueueMetadataAction
|
@implementation SBQueueMetadataAction
|
||||||
|
|
||||||
|
- (instancetype)init {
|
||||||
|
self = [super init];
|
||||||
|
if (self) {
|
||||||
|
_language = [MetadataImporter defaultMovieLanguage];
|
||||||
|
_movieProvider = @"TheMovieDB";
|
||||||
|
_tvShowProvider = @"TheTVDB";
|
||||||
|
}
|
||||||
|
return self;
|
||||||
|
}
|
||||||
|
|
||||||
|
- (instancetype)initWithLanguage:(NSString *)language movieProvider:(NSString *)movieProvider tvShowProvider:(NSString *)tvShowProvider {
|
||||||
|
self = [self init];
|
||||||
|
if (self) {
|
||||||
|
_language = language;
|
||||||
|
_movieProvider = movieProvider;
|
||||||
|
_tvShowProvider = tvShowProvider;
|
||||||
|
}
|
||||||
|
return self;
|
||||||
|
}
|
||||||
|
|
||||||
- (MP42Image *)loadArtwork:(NSURL *)url {
|
- (MP42Image *)loadArtwork:(NSURL *)url {
|
||||||
NSData *artworkData = [MetadataImporter downloadDataFromURL:url withCachePolicy:SBDefaultPolicy];
|
NSData *artworkData = [MetadataImporter downloadDataFromURL:url withCachePolicy:SBDefaultPolicy];
|
||||||
if (artworkData && [artworkData length]) {
|
if (artworkData && [artworkData length]) {
|
||||||
@@ -97,13 +117,13 @@
|
|||||||
NSDictionary *parsed = [MetadataImporter parseFilename:[url lastPathComponent]];
|
NSDictionary *parsed = [MetadataImporter parseFilename:[url lastPathComponent]];
|
||||||
NSString *type = (NSString *)[parsed valueForKey:@"type"];
|
NSString *type = (NSString *)[parsed valueForKey:@"type"];
|
||||||
if ([@"movie" isEqualToString:type]) {
|
if ([@"movie" isEqualToString:type]) {
|
||||||
currentSearcher = [MetadataImporter defaultMovieProvider];
|
currentSearcher = [MetadataImporter importerForProvider:_movieProvider];
|
||||||
NSString *language = [MetadataImporter defaultMovieLanguage];
|
NSString *language = [MetadataImporter defaultMovieLanguage];
|
||||||
NSArray *results = [currentSearcher searchMovie:[parsed valueForKey:@"title"] language:language];
|
NSArray *results = [currentSearcher searchMovie:[parsed valueForKey:@"title"] language:language];
|
||||||
if ([results count])
|
if ([results count])
|
||||||
metadata = [currentSearcher loadMovieMetadata:[results objectAtIndex:0] language:language];
|
metadata = [currentSearcher loadMovieMetadata:[results objectAtIndex:0] language:language];
|
||||||
} else if ([@"tv" isEqualToString:type]) {
|
} else if ([@"tv" isEqualToString:type]) {
|
||||||
currentSearcher = [MetadataImporter defaultTVProvider];
|
currentSearcher = [MetadataImporter importerForProvider:_tvShowProvider];
|
||||||
NSString *language = [MetadataImporter defaultTVLanguage];
|
NSString *language = [MetadataImporter defaultTVLanguage];
|
||||||
NSArray *results = [currentSearcher searchTVSeries:[parsed valueForKey:@"seriesName"]
|
NSArray *results = [currentSearcher searchTVSeries:[parsed valueForKey:@"seriesName"]
|
||||||
language:language seasonNum:[parsed valueForKey:@"seasonNum"]
|
language:language seasonNum:[parsed valueForKey:@"seasonNum"]
|
||||||
|
|||||||
+20
-12
@@ -131,18 +131,23 @@ static void *SBQueueContex = &SBQueueContex;
|
|||||||
@"SBQueueMetadata" : @NO,
|
@"SBQueueMetadata" : @NO,
|
||||||
@"SBQueueSubtitles": @YES,
|
@"SBQueueSubtitles": @YES,
|
||||||
@"SBQueueAutoStart": @NO,
|
@"SBQueueAutoStart": @NO,
|
||||||
@"SBQueueOptimize" : @YES }];
|
@"SBQueueOptimize" : @YES,
|
||||||
|
@"SBQueueMovieProvider" : @"TheMovieDB",
|
||||||
|
@"SBQueueTVShowProvider" : @"TheTVDB",
|
||||||
|
@"SBQueueProviderLanguage" : @"English"}];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Save the queue user defaults
|
* Save the queue user defaults
|
||||||
*/
|
*/
|
||||||
- (void)saveUserDefaults {
|
- (void)saveUserDefaults {
|
||||||
[[NSUserDefaults standardUserDefaults] setValue:[self.options objectForKey:@"SBQueueOrganize"] forKey:@"SBQueueOrganize"];
|
NSArray *keys = @[@"SBQueueOrganize", @"SBQueueMetadata", @"SBQueueSubtitles", @"SBQueueAutoStart", @"SBQueueOptimize",
|
||||||
[[NSUserDefaults standardUserDefaults] setValue:[self.options objectForKey:@"SBQueueMetadata"] forKey:@"SBQueueMetadata"];
|
@"SBQueueMovieProvider", @"SBQueueTVShowProvider", @"SBQueueProviderLanguage"];
|
||||||
[[NSUserDefaults standardUserDefaults] setValue:[self.options objectForKey:@"SBQueueSubtitles"] forKey:@"SBQueueSubtitles"];
|
|
||||||
[[NSUserDefaults standardUserDefaults] setValue:[self.options objectForKey:@"SBQueueAutoStart"] forKey:@"SBQueueAutoStart"];
|
[keys enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) {
|
||||||
[[NSUserDefaults standardUserDefaults] setValue:[self.options objectForKey:@"SBQueueOptimize"] forKey:@"SBQueueOptimize"];
|
[[NSUserDefaults standardUserDefaults] setValue:[self.options objectForKey:obj] forKey:obj];
|
||||||
|
}];
|
||||||
|
|
||||||
[[NSUserDefaults standardUserDefaults] setValue:[[self.options objectForKey:@"SBQueueDestination"] path] forKey:@"SBQueueDestination"];
|
[[NSUserDefaults standardUserDefaults] setValue:[[self.options objectForKey:@"SBQueueDestination"] path] forKey:@"SBQueueDestination"];
|
||||||
[[NSUserDefaults standardUserDefaults] setValue:[[self.options objectForKey:@"SBQueueSet"] presetName] forKey:@"SBQueueSet"];
|
[[NSUserDefaults standardUserDefaults] setValue:[[self.options objectForKey:@"SBQueueSet"] presetName] forKey:@"SBQueueSet"];
|
||||||
}
|
}
|
||||||
@@ -154,11 +159,12 @@ static void *SBQueueContex = &SBQueueContex;
|
|||||||
- (void)initOptions {
|
- (void)initOptions {
|
||||||
_options = [[NSMutableDictionary alloc] init];
|
_options = [[NSMutableDictionary alloc] init];
|
||||||
|
|
||||||
[_options setObject:[[NSUserDefaults standardUserDefaults] valueForKey:@"SBQueueOrganize"] forKey:@"SBQueueOrganize"];
|
NSArray *keys = @[@"SBQueueOrganize", @"SBQueueMetadata", @"SBQueueSubtitles", @"SBQueueAutoStart", @"SBQueueOptimize",
|
||||||
[_options setObject:[[NSUserDefaults standardUserDefaults] valueForKey:@"SBQueueMetadata"] forKey:@"SBQueueMetadata"];
|
@"SBQueueMovieProvider", @"SBQueueTVShowProvider", @"SBQueueProviderLanguage"];
|
||||||
[_options setObject:[[NSUserDefaults standardUserDefaults] valueForKey:@"SBQueueSubtitles"] forKey:@"SBQueueSubtitles"];
|
|
||||||
[_options setObject:[[NSUserDefaults standardUserDefaults] valueForKey:@"SBQueueAutoStart"] forKey:@"SBQueueAutoStart"];
|
[keys enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) {
|
||||||
[_options setObject:[[NSUserDefaults standardUserDefaults] valueForKey:@"SBQueueOptimize"] forKey:@"SBQueueOptimize"];
|
[_options setObject:[[NSUserDefaults standardUserDefaults] valueForKey:obj] forKey:obj];
|
||||||
|
}];
|
||||||
|
|
||||||
if ([[NSUserDefaults standardUserDefaults] valueForKey:@"SBQueueDestination"]) {
|
if ([[NSUserDefaults standardUserDefaults] valueForKey:@"SBQueueDestination"]) {
|
||||||
[_options setObject:[NSURL fileURLWithPath:[[NSUserDefaults standardUserDefaults] valueForKey:@"SBQueueDestination"]] forKey:@"SBQueueDestination"];
|
[_options setObject:[NSURL fileURLWithPath:[[NSUserDefaults standardUserDefaults] valueForKey:@"SBQueueDestination"]] forKey:@"SBQueueDestination"];
|
||||||
@@ -249,7 +255,9 @@ static void *SBQueueContex = &SBQueueContex;
|
|||||||
SBQueueItem *item = [SBQueueItem itemWithURL:url];
|
SBQueueItem *item = [SBQueueItem itemWithURL:url];
|
||||||
|
|
||||||
if ([[self.options objectForKey:@"SBQueueMetadata"] boolValue]) {
|
if ([[self.options objectForKey:@"SBQueueMetadata"] boolValue]) {
|
||||||
[item addAction:[[[SBQueueMetadataAction alloc] init] autorelease]];
|
[item addAction:[[[SBQueueMetadataAction alloc] initWithLanguage:[self.options objectForKey:@"SBQueueProviderLanguage"]
|
||||||
|
movieProvider:[self.options objectForKey:@"SBQueueMovieProvider"]
|
||||||
|
tvShowProvider:[self.options objectForKey:@"SBQueueTVShowProvider"]] autorelease]];
|
||||||
}
|
}
|
||||||
|
|
||||||
if ([[self.options objectForKey:@"SBQueueSubtitles"] boolValue]) {
|
if ([[self.options objectForKey:@"SBQueueSubtitles"] boolValue]) {
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="5053" systemVersion="13D21" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
|
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="5056" systemVersion="13D43" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<deployment defaultVersion="1060" identifier="macosx"/>
|
<deployment defaultVersion="1060" identifier="macosx"/>
|
||||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="5053"/>
|
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="5056"/>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<objects>
|
<objects>
|
||||||
<customObject id="-2" userLabel="File's Owner" customClass="SBQueueController">
|
<customObject id="-2" userLabel="File's Owner" customClass="SBQueueController">
|
||||||
@@ -208,10 +208,10 @@
|
|||||||
<window title="Queue Options" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" hidesOnDeactivate="YES" showsToolbarButton="NO" visibleAtLaunch="NO" animationBehavior="default" id="zHc-NF-Zeh" userLabel="Window - Detached Options" customClass="NSPanel">
|
<window title="Queue Options" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" hidesOnDeactivate="YES" showsToolbarButton="NO" visibleAtLaunch="NO" animationBehavior="default" id="zHc-NF-Zeh" userLabel="Window - Detached Options" customClass="NSPanel">
|
||||||
<windowStyleMask key="styleMask" titled="YES" closable="YES" utility="YES"/>
|
<windowStyleMask key="styleMask" titled="YES" closable="YES" utility="YES"/>
|
||||||
<windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
|
<windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
|
||||||
<rect key="contentRect" x="283" y="305" width="321" height="166"/>
|
<rect key="contentRect" x="283" y="305" width="321" height="238"/>
|
||||||
<rect key="screenRect" x="0.0" y="0.0" width="2560" height="1418"/>
|
<rect key="screenRect" x="0.0" y="0.0" width="2560" height="1418"/>
|
||||||
<view key="contentView" id="hhb-jZ-DWa">
|
<view key="contentView" id="hhb-jZ-DWa">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="321" height="166"/>
|
<rect key="frame" x="0.0" y="0.0" width="321" height="238"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
</view>
|
</view>
|
||||||
</window>
|
</window>
|
||||||
|
|||||||
+120
-12
@@ -1,8 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="5053" systemVersion="13D21" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
|
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="5056" systemVersion="13D43" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<deployment defaultVersion="1060" identifier="macosx"/>
|
<deployment defaultVersion="1060" identifier="macosx"/>
|
||||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="5053"/>
|
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="5056"/>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<objects>
|
<objects>
|
||||||
<customObject id="-2" userLabel="File's Owner" customClass="SBOptionsViewController">
|
<customObject id="-2" userLabel="File's Owner" customClass="SBOptionsViewController">
|
||||||
@@ -14,7 +14,7 @@
|
|||||||
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
|
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
|
||||||
<customObject id="-3" userLabel="Application"/>
|
<customObject id="-3" userLabel="Application"/>
|
||||||
<customView id="UlG-O3-eNc" userLabel="OptionsView">
|
<customView id="UlG-O3-eNc" userLabel="OptionsView">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="321" height="165"/>
|
<rect key="frame" x="0.0" y="0.0" width="321" height="236"/>
|
||||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<button id="zEH-aV-Tl7">
|
<button id="zEH-aV-Tl7">
|
||||||
@@ -33,7 +33,7 @@
|
|||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
<button toolTip="Search metadata online" id="9GN-f6-r2j">
|
<button toolTip="Search metadata online" id="9GN-f6-r2j">
|
||||||
<rect key="frame" x="111" y="139" width="103" height="18"/>
|
<rect key="frame" x="111" y="210" width="103" height="18"/>
|
||||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||||
<buttonCell key="cell" type="check" title="Fetch Metadata" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="QNO-e1-WUJ">
|
<buttonCell key="cell" type="check" title="Fetch Metadata" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="QNO-e1-WUJ">
|
||||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||||
@@ -93,10 +93,10 @@
|
|||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
<popUpButton verticalHuggingPriority="750" id="86l-GG-SpO">
|
<popUpButton verticalHuggingPriority="750" id="86l-GG-SpO">
|
||||||
<rect key="frame" x="171" y="51" width="133" height="22"/>
|
<rect key="frame" x="171" y="59" width="133" height="17"/>
|
||||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||||
<popUpButtonCell key="cell" type="push" bezelStyle="rounded" alignment="left" controlSize="small" lineBreakMode="truncatingTail" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" autoenablesItems="NO" id="8bb-Gy-KAS">
|
<popUpButtonCell key="cell" type="roundRect" bezelStyle="roundedRect" imagePosition="left" alignment="left" controlSize="small" lineBreakMode="truncatingTail" borderStyle="border" imageScaling="proportionallyDown" inset="2" autoenablesItems="NO" id="8bb-Gy-KAS">
|
||||||
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
<font key="font" metaFont="smallSystem"/>
|
<font key="font" metaFont="smallSystem"/>
|
||||||
<menu key="menu" title="OtherViews" autoenablesItems="NO" id="BBw-yf-xUC">
|
<menu key="menu" title="OtherViews" autoenablesItems="NO" id="BBw-yf-xUC">
|
||||||
<items>
|
<items>
|
||||||
@@ -116,7 +116,7 @@
|
|||||||
</popUpButtonCell>
|
</popUpButtonCell>
|
||||||
</popUpButton>
|
</popUpButton>
|
||||||
<textField verticalHuggingPriority="750" id="vJ5-JB-k1m">
|
<textField verticalHuggingPriority="750" id="vJ5-JB-k1m">
|
||||||
<rect key="frame" x="112" y="56" width="56" height="14"/>
|
<rect key="frame" x="112" y="61" width="56" height="14"/>
|
||||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||||
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Location:" id="17e-9u-rVn">
|
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Location:" id="17e-9u-rVn">
|
||||||
<font key="font" metaFont="smallSystemBold"/>
|
<font key="font" metaFont="smallSystemBold"/>
|
||||||
@@ -133,6 +133,30 @@
|
|||||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||||
</textFieldCell>
|
</textFieldCell>
|
||||||
</textField>
|
</textField>
|
||||||
|
<textField verticalHuggingPriority="750" id="eTL-yP-QQ5">
|
||||||
|
<rect key="frame" x="140" y="189" width="47" height="14"/>
|
||||||
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||||
|
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Movies:" id="W6m-cd-JMe">
|
||||||
|
<font key="font" metaFont="smallSystemBold"/>
|
||||||
|
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
|
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||||
|
</textFieldCell>
|
||||||
|
<connections>
|
||||||
|
<binding destination="-2" name="enabled" keyPath="self.options.SBQueueMetadata" id="2eU-MV-o1B"/>
|
||||||
|
</connections>
|
||||||
|
</textField>
|
||||||
|
<textField verticalHuggingPriority="750" id="bDo-OD-bck">
|
||||||
|
<rect key="frame" x="124" y="169" width="63" height="14"/>
|
||||||
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||||
|
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="TV Shows:" id="PCe-Pw-D2s">
|
||||||
|
<font key="font" metaFont="smallSystemBold"/>
|
||||||
|
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
|
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||||
|
</textFieldCell>
|
||||||
|
<connections>
|
||||||
|
<binding destination="-2" name="enabled" keyPath="self.options.SBQueueMetadata" id="Xd6-EH-Zdj"/>
|
||||||
|
</connections>
|
||||||
|
</textField>
|
||||||
<textField verticalHuggingPriority="750" id="Uoo-hZ-D1f">
|
<textField verticalHuggingPriority="750" id="Uoo-hZ-D1f">
|
||||||
<rect key="frame" x="18" y="27" width="90" height="14"/>
|
<rect key="frame" x="18" y="27" width="90" height="14"/>
|
||||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||||
@@ -143,7 +167,7 @@
|
|||||||
</textFieldCell>
|
</textFieldCell>
|
||||||
</textField>
|
</textField>
|
||||||
<textField verticalHuggingPriority="750" id="S7L-mA-j3Y">
|
<textField verticalHuggingPriority="750" id="S7L-mA-j3Y">
|
||||||
<rect key="frame" x="49" y="141" width="59" height="14"/>
|
<rect key="frame" x="49" y="212" width="59" height="14"/>
|
||||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||||
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Add item:" id="9ls-xq-YGz">
|
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Add item:" id="9ls-xq-YGz">
|
||||||
<font key="font" metaFont="smallSystemBold"/>
|
<font key="font" metaFont="smallSystemBold"/>
|
||||||
@@ -152,10 +176,10 @@
|
|||||||
</textFieldCell>
|
</textFieldCell>
|
||||||
</textField>
|
</textField>
|
||||||
<popUpButton verticalHuggingPriority="750" id="DVM-Js-DwK">
|
<popUpButton verticalHuggingPriority="750" id="DVM-Js-DwK">
|
||||||
<rect key="frame" x="176" y="77" width="128" height="22"/>
|
<rect key="frame" x="176" y="80" width="128" height="17"/>
|
||||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||||
<popUpButtonCell key="cell" type="push" bezelStyle="rounded" alignment="left" controlSize="small" lineBreakMode="truncatingTail" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" id="bQx-xN-b3H">
|
<popUpButtonCell key="cell" type="roundRect" bezelStyle="roundedRect" alignment="left" controlSize="small" lineBreakMode="truncatingTail" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="bQx-xN-b3H">
|
||||||
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
<font key="font" metaFont="smallSystem"/>
|
<font key="font" metaFont="smallSystem"/>
|
||||||
<menu key="menu" title="OtherViews" id="4en-ZA-qlS"/>
|
<menu key="menu" title="OtherViews" id="4en-ZA-qlS"/>
|
||||||
</popUpButtonCell>
|
</popUpButtonCell>
|
||||||
@@ -180,6 +204,90 @@
|
|||||||
</binding>
|
</binding>
|
||||||
</connections>
|
</connections>
|
||||||
</popUpButton>
|
</popUpButton>
|
||||||
|
<popUpButton verticalHuggingPriority="750" id="ZVm-yi-3cE">
|
||||||
|
<rect key="frame" x="193" y="189" width="111" height="17"/>
|
||||||
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||||
|
<popUpButtonCell key="cell" type="roundRect" bezelStyle="roundedRect" alignment="left" controlSize="small" lineBreakMode="truncatingTail" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="CbR-eu-sGI">
|
||||||
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
|
<font key="font" metaFont="smallSystem"/>
|
||||||
|
<menu key="menu" title="OtherViews" id="ptP-wd-Rxc"/>
|
||||||
|
</popUpButtonCell>
|
||||||
|
<connections>
|
||||||
|
<binding destination="-2" name="content" keyPath="self.moviesProviders" id="crR-iB-g3d">
|
||||||
|
<dictionary key="options">
|
||||||
|
<string key="NSNoSelectionPlaceholder">None</string>
|
||||||
|
<string key="NSNotApplicablePlaceholder">None</string>
|
||||||
|
<string key="NSNullPlaceholder">None</string>
|
||||||
|
</dictionary>
|
||||||
|
</binding>
|
||||||
|
<binding destination="-2" name="enabled" keyPath="self.options.SBQueueMetadata" id="IHE-rh-qMI"/>
|
||||||
|
<binding destination="-2" name="selectedObject" keyPath="options.SBQueueMovieProvider" previousBinding="crR-iB-g3d" id="zMN-ZS-xkn">
|
||||||
|
<dictionary key="options">
|
||||||
|
<bool key="NSValidatesImmediately" value="YES"/>
|
||||||
|
</dictionary>
|
||||||
|
</binding>
|
||||||
|
</connections>
|
||||||
|
</popUpButton>
|
||||||
|
<popUpButton verticalHuggingPriority="750" id="tLh-V3-OfB">
|
||||||
|
<rect key="frame" x="193" y="167" width="111" height="17"/>
|
||||||
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||||
|
<popUpButtonCell key="cell" type="roundRect" bezelStyle="roundedRect" alignment="left" controlSize="small" lineBreakMode="truncatingTail" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="UOb-Qe-IPw">
|
||||||
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
|
<font key="font" metaFont="smallSystem"/>
|
||||||
|
<menu key="menu" title="OtherViews" id="ytE-Us-3gv"/>
|
||||||
|
</popUpButtonCell>
|
||||||
|
<connections>
|
||||||
|
<binding destination="-2" name="content" keyPath="self.tvShowsProviders" id="Rh9-LC-qBz">
|
||||||
|
<dictionary key="options">
|
||||||
|
<string key="NSNoSelectionPlaceholder">None</string>
|
||||||
|
<string key="NSNotApplicablePlaceholder">None</string>
|
||||||
|
<string key="NSNullPlaceholder">None</string>
|
||||||
|
</dictionary>
|
||||||
|
</binding>
|
||||||
|
<binding destination="-2" name="enabled" keyPath="self.options.SBQueueMetadata" id="WZY-iH-YJ5"/>
|
||||||
|
<binding destination="-2" name="selectedObject" keyPath="options.SBQueueTVShowProvider" previousBinding="Rh9-LC-qBz" id="29h-lK-saO">
|
||||||
|
<dictionary key="options">
|
||||||
|
<bool key="NSValidatesImmediately" value="YES"/>
|
||||||
|
</dictionary>
|
||||||
|
</binding>
|
||||||
|
</connections>
|
||||||
|
</popUpButton>
|
||||||
|
<textField verticalHuggingPriority="750" id="BWL-Nn-iGH">
|
||||||
|
<rect key="frame" x="124" y="147" width="62" height="14"/>
|
||||||
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||||
|
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Language:" id="1dC-y4-0rx">
|
||||||
|
<font key="font" metaFont="smallSystemBold"/>
|
||||||
|
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
|
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||||
|
</textFieldCell>
|
||||||
|
<connections>
|
||||||
|
<binding destination="-2" name="enabled" keyPath="self.options.SBQueueMetadata" id="A11-N0-4xV"/>
|
||||||
|
</connections>
|
||||||
|
</textField>
|
||||||
|
<popUpButton verticalHuggingPriority="750" id="Ce4-O7-Iu4">
|
||||||
|
<rect key="frame" x="193" y="145" width="111" height="17"/>
|
||||||
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||||
|
<popUpButtonCell key="cell" type="roundRect" bezelStyle="roundedRect" alignment="left" controlSize="small" lineBreakMode="truncatingTail" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="nqF-p0-mT7">
|
||||||
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
|
<font key="font" metaFont="smallSystem"/>
|
||||||
|
<menu key="menu" title="OtherViews" id="U0q-ED-kQf"/>
|
||||||
|
</popUpButtonCell>
|
||||||
|
<connections>
|
||||||
|
<binding destination="-2" name="content" keyPath="self.languages" id="6NP-iD-sJZ">
|
||||||
|
<dictionary key="options">
|
||||||
|
<string key="NSNoSelectionPlaceholder">None</string>
|
||||||
|
<string key="NSNotApplicablePlaceholder">None</string>
|
||||||
|
<string key="NSNullPlaceholder">None</string>
|
||||||
|
</dictionary>
|
||||||
|
</binding>
|
||||||
|
<binding destination="-2" name="enabled" keyPath="self.options.SBQueueMetadata" id="P1S-72-eFU"/>
|
||||||
|
<binding destination="-2" name="selectedObject" keyPath="options.SBQueueProviderLanguage" previousBinding="6NP-iD-sJZ" id="NQo-71-Vl8">
|
||||||
|
<dictionary key="options">
|
||||||
|
<bool key="NSValidatesImmediately" value="YES"/>
|
||||||
|
</dictionary>
|
||||||
|
</binding>
|
||||||
|
</connections>
|
||||||
|
</popUpButton>
|
||||||
</subviews>
|
</subviews>
|
||||||
</customView>
|
</customView>
|
||||||
<arrayController objectClassName="Set" automaticallyPreparesContent="YES" id="vyv-na-Xpo" userLabel="Set Controller">
|
<arrayController objectClassName="Set" automaticallyPreparesContent="YES" id="vyv-na-Xpo" userLabel="Set Controller">
|
||||||
|
|||||||
Reference in new issue
Block a user