Hook up the set language action.

This commit is contained in:
Damiano Galassi committed 2016-07-27 16:06:07 +02:00
1 parent df1eaf0287
commit 247311ab1a
6 files changed
+114 -73

No files matched your search

+1 -14
View File
@@ -10,20 +10,7 @@
NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_BEGIN
@interface SBOptionsViewController : NSViewController { @interface SBOptionsViewController : NSViewController
@private
IBOutlet NSPopUpButton *_destButton;
NSMutableDictionary *_options;
NSMutableArray *_sets;
NSArray *_moviesProviders;
NSArray *_tvShowsProviders;
NSArray *_movieLanguages;
NSArray *_tvShowLanguages;
NSURL *_destination;
}
- (instancetype)initWithOptions:(NSMutableDictionary *)options; - (instancetype)initWithOptions:(NSMutableDictionary *)options;
+17 -1
View File
@@ -16,7 +16,20 @@
static void *SBOptionsViewContex = &SBOptionsViewContex; static void *SBOptionsViewContex = &SBOptionsViewContex;
@interface SBOptionsViewController () @interface SBOptionsViewController () {
@private
IBOutlet NSPopUpButton *_destButton;
NSMutableDictionary *_options;
NSMutableArray *_sets;
NSArray *_moviesProviders;
NSArray *_tvShowsProviders;
NSArray *_movieLanguages;
NSArray *_tvShowLanguages;
NSURL *_destination;
}
@property (nonatomic) NSMutableDictionary *options; @property (nonatomic) NSMutableDictionary *options;
@property (nonatomic, strong) NSMutableArray *sets; @property (nonatomic, strong) NSMutableArray *sets;
@@ -26,6 +39,8 @@ static void *SBOptionsViewContex = &SBOptionsViewContex;
@property (nonatomic, strong) NSArray *movieLanguages; @property (nonatomic, strong) NSArray *movieLanguages;
@property (nonatomic, strong) NSArray *tvShowLanguages; @property (nonatomic, strong) NSArray *tvShowLanguages;
@property (nonatomic, strong) NSArray *languages;
- (IBAction)chooseDestination:(id)sender; - (IBAction)chooseDestination:(id)sender;
- (IBAction)destination:(id)sender; - (IBAction)destination:(id)sender;
@@ -42,6 +57,7 @@ static void *SBOptionsViewContex = &SBOptionsViewContex;
_sets = [[NSMutableArray alloc] init]; _sets = [[NSMutableArray alloc] init];
_moviesProviders = [SBMetadataImporter movieProviders]; _moviesProviders = [SBMetadataImporter movieProviders];
_tvShowsProviders = [SBMetadataImporter tvProviders]; _tvShowsProviders = [SBMetadataImporter tvProviders];
_languages = [[MP42Languages defaultManager] languages];
} }
return self; return self;
+4
View File
@@ -259,6 +259,10 @@ static void *SBQueueContex = &SBQueueContex;
[item addAction:[[SBQueueFixFallbacksAction alloc] init]]; [item addAction:[[SBQueueFixFallbacksAction alloc] init]];
} }
if ([(self.options)[SBQueueFixTrackLanguage] boolValue]) {
[item addAction:[[SBQueueSetLanguageAction alloc] initWithLanguage:self.options[SBQueueFixTrackLanguageValue]]];
}
if ((self.options)[SBQueueSet]) { if ((self.options)[SBQueueSet]) {
[item addAction:[[SBQueueSetAction alloc] initWithSet:(self.options)[SBQueueSet]]]; [item addAction:[[SBQueueSetAction alloc] initWithSet:(self.options)[SBQueueSet]]];
} }
+3
View File
@@ -20,6 +20,9 @@ extern NSString * const SBQueueSet;
extern NSString * const SBQueueAutoStart; extern NSString * const SBQueueAutoStart;
extern NSString * const SBQueueOptimize; extern NSString * const SBQueueOptimize;
extern NSString * const SBQueueFixTrackLanguage;
extern NSString * const SBQueueFixTrackLanguageValue;
extern NSString * const SBQueueMovieProvider; extern NSString * const SBQueueMovieProvider;
extern NSString * const SBQueueTVShowProvider; extern NSString * const SBQueueTVShowProvider;
extern NSString * const SBQueueMovieProviderLanguage; extern NSString * const SBQueueMovieProviderLanguage;
+7 -4
View File
@@ -20,6 +20,9 @@ NSString * const SBQueueSubtitles = @"SBQueueSubtitles";
NSString * const SBQueueAutoStart = @"SBQueueAutoStart"; NSString * const SBQueueAutoStart = @"SBQueueAutoStart";
NSString * const SBQueueOptimize = @"SBQueueOptimize"; NSString * const SBQueueOptimize = @"SBQueueOptimize";
NSString * const SBQueueFixTrackLanguage = @"SBQueueFixTrackLanguage";
NSString * const SBQueueFixTrackLanguageValue = @"SBQueueFixTrackLanguageValue";
NSString * const SBQueueDestination = @"SBQueueDestination"; NSString * const SBQueueDestination = @"SBQueueDestination";
NSString * const SBQueueMovieProvider = @"SBQueueMovieProvider"; NSString * const SBQueueMovieProvider = @"SBQueueMovieProvider";
@@ -37,8 +40,7 @@ NSString * const SBQueueSet = @"SBQueueSet";
if (self) { if (self) {
_options = [[NSMutableDictionary alloc] init]; _options = [[NSMutableDictionary alloc] init];
NSArray *keys = @[SBQueueFileType, SBQueueOrganize, SBQueueFixFallbacks, SBQueueMetadata, SBQueueSubtitles, SBQueueAutoStart, SBQueueOptimize, NSArray *keys = @[SBQueueFileType, SBQueueOrganize, SBQueueFixTrackLanguage, SBQueueFixTrackLanguageValue, SBQueueFixFallbacks, SBQueueMetadata, SBQueueSubtitles, SBQueueAutoStart, SBQueueOptimize, SBQueueMovieProvider, SBQueueTVShowProvider, SBQueueMovieProviderLanguage, SBQueueTVShowProviderLanguage];
SBQueueMovieProvider, SBQueueTVShowProvider, SBQueueMovieProviderLanguage, SBQueueTVShowProviderLanguage];
[keys enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) { [keys enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) {
self.options[obj] = [[NSUserDefaults standardUserDefaults] valueForKey:obj]; self.options[obj] = [[NSUserDefaults standardUserDefaults] valueForKey:obj];
@@ -62,6 +64,8 @@ NSString * const SBQueueSet = @"SBQueueSet";
+ (void)registerUserDefaults { + (void)registerUserDefaults {
[[NSUserDefaults standardUserDefaults] registerDefaults:@{ SBQueueFileType : @"mp4", [[NSUserDefaults standardUserDefaults] registerDefaults:@{ SBQueueFileType : @"mp4",
SBQueueOrganize : @YES, SBQueueOrganize : @YES,
SBQueueFixTrackLanguage: @NO,
SBQueueFixTrackLanguageValue: @"English",
SBQueueFixFallbacks: @NO, SBQueueFixFallbacks: @NO,
SBQueueMetadata : @NO, SBQueueMetadata : @NO,
SBQueueSubtitles: @YES, SBQueueSubtitles: @YES,
@@ -77,8 +81,7 @@ NSString * const SBQueueSet = @"SBQueueSet";
* Save the queue user defaults * Save the queue user defaults
*/ */
- (void)saveUserDefaults { - (void)saveUserDefaults {
NSArray<NSString *> *keys = @[SBQueueFileType, SBQueueOrganize, SBQueueFixFallbacks, SBQueueMetadata, SBQueueSubtitles, SBQueueAutoStart, SBQueueOptimize, NSArray<NSString *> *keys = @[SBQueueFileType, SBQueueOrganize, SBQueueFixTrackLanguage, SBQueueFixTrackLanguageValue, SBQueueFixFallbacks, SBQueueMetadata, SBQueueSubtitles, SBQueueAutoStart, SBQueueOptimize, SBQueueMovieProvider, SBQueueTVShowProvider, SBQueueMovieProviderLanguage, SBQueueTVShowProviderLanguage];
SBQueueMovieProvider, SBQueueTVShowProvider, SBQueueMovieProviderLanguage, SBQueueTVShowProviderLanguage];
[keys enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) { [keys enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) {
[[NSUserDefaults standardUserDefaults] setValue:(self.options)[obj] forKey:obj]; [[NSUserDefaults standardUserDefaults] setValue:(self.options)[obj] forKey:obj];
+82 -54
View File
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="9060" systemVersion="15C47a" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none"> <document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="11173.2" systemVersion="16A238m" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
<dependencies> <dependencies>
<deployment identifier="macosx"/> <deployment identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="9060"/> <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="11173.2"/>
</dependencies> </dependencies>
<objects> <objects>
<customObject id="-2" userLabel="File's Owner" customClass="SBOptionsViewController"> <customObject id="-2" userLabel="File's Owner" customClass="SBOptionsViewController">
@@ -13,14 +13,13 @@
</customObject> </customObject>
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/> <customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
<customObject id="-3" userLabel="Application" customClass="NSObject"/> <customObject id="-3" userLabel="Application" customClass="NSObject"/>
<customView id="UlG-O3-eNc" userLabel="OptionsView"> <customView misplaced="YES" id="UlG-O3-eNc" userLabel="OptionsView">
<rect key="frame" x="0.0" y="0.0" width="334" height="299"/> <rect key="frame" x="0.0" y="0.0" width="357" height="358"/>
<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">
<rect key="frame" x="111" y="7" width="71" height="18"/> <rect key="frame" x="111" y="18" width="71" height="18"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<animations/>
<buttonCell key="cell" type="check" title="Optimize" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="nig-pN-efw"> <buttonCell key="cell" type="check" title="Optimize" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="nig-pN-efw">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/> <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="smallSystem"/> <font key="font" metaFont="smallSystem"/>
@@ -34,9 +33,8 @@
</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="273" width="112" height="18"/> <rect key="frame" x="111" y="332" width="112" height="18"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<animations/>
<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"/>
<font key="font" metaFont="smallSystem"/> <font key="font" metaFont="smallSystem"/>
@@ -50,9 +48,8 @@
</connections> </connections>
</button> </button>
<button id="MGZ-hB-jhx"> <button id="MGZ-hB-jhx">
<rect key="frame" x="111" y="25" width="136" height="18"/> <rect key="frame" x="111" y="36" width="136" height="18"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<animations/>
<buttonCell key="cell" type="check" title="Auto-Start the queue" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="LYO-G0-9jA"> <buttonCell key="cell" type="check" title="Auto-Start the queue" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="LYO-G0-9jA">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/> <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="smallSystem"/> <font key="font" metaFont="smallSystem"/>
@@ -66,9 +63,8 @@
</connections> </connections>
</button> </button>
<button toolTip="Organize the mp4 alternate groups" id="ccd-Xn-Dj3"> <button toolTip="Organize the mp4 alternate groups" id="ccd-Xn-Dj3">
<rect key="frame" x="111" y="158" width="112" height="18"/> <rect key="frame" x="111" y="217" width="112" height="18"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<animations/>
<buttonCell key="cell" type="check" title="Organize Groups" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="240-c7-2UW"> <buttonCell key="cell" type="check" title="Organize Groups" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="240-c7-2UW">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/> <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="smallSystem"/> <font key="font" metaFont="smallSystem"/>
@@ -82,9 +78,8 @@
</connections> </connections>
</button> </button>
<button toolTip="Load the external srt subtitles file" id="etc-K7-Atw"> <button toolTip="Load the external srt subtitles file" id="etc-K7-Atw">
<rect key="frame" x="111" y="122" width="143" height="18"/> <rect key="frame" x="111" y="181" width="143" height="18"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<animations/>
<buttonCell key="cell" type="check" title="Load external subtitles" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="59T-kp-mV1"> <buttonCell key="cell" type="check" title="Load external subtitles" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="59T-kp-mV1">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/> <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="smallSystem"/> <font key="font" metaFont="smallSystem"/>
@@ -97,10 +92,9 @@
</binding> </binding>
</connections> </connections>
</button> </button>
<popUpButton verticalHuggingPriority="750" id="86l-GG-SpO"> <popUpButton verticalHuggingPriority="750" misplaced="YES" id="86l-GG-SpO">
<rect key="frame" x="171" y="79" width="133" height="17"/> <rect key="frame" x="174" y="93" width="128" height="17"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<animations/>
<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"> <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" pushIn="YES" lightByBackground="YES" lightByGray="YES"/> <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="smallSystem"/> <font key="font" metaFont="smallSystem"/>
@@ -122,9 +116,8 @@
</popUpButtonCell> </popUpButtonCell>
</popUpButton> </popUpButton>
<textField verticalHuggingPriority="750" id="vJ5-JB-k1m"> <textField verticalHuggingPriority="750" id="vJ5-JB-k1m">
<rect key="frame" x="112" y="81" width="56" height="14"/> <rect key="frame" x="115" y="95" width="56" height="14"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<animations/>
<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"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/> <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -132,9 +125,8 @@
</textFieldCell> </textFieldCell>
</textField> </textField>
<popUpButton verticalHuggingPriority="750" id="KWg-Ak-bB6"> <popUpButton verticalHuggingPriority="750" id="KWg-Ak-bB6">
<rect key="frame" x="174" y="59" width="130" height="17"/> <rect key="frame" x="174" y="73" width="130" height="17"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<animations/>
<popUpButtonCell key="cell" type="roundRect" title="mp4" bezelStyle="roundedRect" imagePosition="left" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="border" tag="10" imageScaling="proportionallyDown" inset="2" autoenablesItems="NO" selectedItem="iXb-rA-1f3" id="Tgc-fW-mN5"> <popUpButtonCell key="cell" type="roundRect" title="mp4" bezelStyle="roundedRect" imagePosition="left" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="border" tag="10" imageScaling="proportionallyDown" inset="2" autoenablesItems="NO" selectedItem="iXb-rA-1f3" id="Tgc-fW-mN5">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/> <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="smallSystem"/> <font key="font" metaFont="smallSystem"/>
@@ -150,19 +142,17 @@
</connections> </connections>
</popUpButton> </popUpButton>
<textField verticalHuggingPriority="750" id="muY-E0-hVI"> <textField verticalHuggingPriority="750" id="muY-E0-hVI">
<rect key="frame" x="112" y="61" width="59" height="14"/> <rect key="frame" x="112" y="75" width="59" height="14"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<animations/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="File Type:" id="UbR-KJ-8iR"> <textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="File Type:" id="UbR-KJ-8iR">
<font key="font" metaFont="smallSystemBold"/> <font key="font" metaFont="smallSystemBold"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/> <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
<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="NhN-Lg-awX"> <textField verticalHuggingPriority="750" misplaced="YES" id="NhN-Lg-awX">
<rect key="frame" x="112" y="101" width="61" height="14"/> <rect key="frame" x="110" y="115" width="61" height="14"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<animations/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Apply Set:" id="9gt-mI-zIV"> <textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Apply Set:" id="9gt-mI-zIV">
<font key="font" metaFont="smallSystemBold"/> <font key="font" metaFont="smallSystemBold"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/> <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -170,9 +160,8 @@
</textFieldCell> </textFieldCell>
</textField> </textField>
<textField verticalHuggingPriority="750" id="eTL-yP-QQ5"> <textField verticalHuggingPriority="750" id="eTL-yP-QQ5">
<rect key="frame" x="124" y="254" width="47" height="14"/> <rect key="frame" x="124" y="313" width="47" height="14"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<animations/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Movies:" id="W6m-cd-JMe"> <textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Movies:" id="W6m-cd-JMe">
<font key="font" metaFont="smallSystemBold"/> <font key="font" metaFont="smallSystemBold"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/> <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -183,9 +172,8 @@
</connections> </connections>
</textField> </textField>
<textField verticalHuggingPriority="750" id="bDo-OD-bck"> <textField verticalHuggingPriority="750" id="bDo-OD-bck">
<rect key="frame" x="124" y="208" width="63" height="14"/> <rect key="frame" x="124" y="267" width="63" height="14"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<animations/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="TV Shows:" id="PCe-Pw-D2s"> <textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="TV Shows:" id="PCe-Pw-D2s">
<font key="font" metaFont="smallSystemBold"/> <font key="font" metaFont="smallSystemBold"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/> <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -196,9 +184,8 @@
</connections> </connections>
</textField> </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="38" width="90" height="14"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<animations/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Global options:" id="NBN-VA-pg2"> <textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Global options:" id="NBN-VA-pg2">
<font key="font" metaFont="smallSystemBold"/> <font key="font" metaFont="smallSystemBold"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/> <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -206,19 +193,17 @@
</textFieldCell> </textFieldCell>
</textField> </textField>
<textField verticalHuggingPriority="750" id="S7L-mA-j3Y"> <textField verticalHuggingPriority="750" id="S7L-mA-j3Y">
<rect key="frame" x="49" y="275" width="59" height="14"/> <rect key="frame" x="49" y="334" width="59" height="14"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<animations/>
<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"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/> <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/> <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell> </textFieldCell>
</textField> </textField>
<popUpButton verticalHuggingPriority="750" id="DVM-Js-DwK"> <popUpButton verticalHuggingPriority="750" misplaced="YES" id="DVM-Js-DwK">
<rect key="frame" x="176" y="99" width="128" height="17"/> <rect key="frame" x="174" y="113" width="128" height="17"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<animations/>
<popUpButtonCell key="cell" type="roundRect" bezelStyle="roundedRect" alignment="left" controlSize="small" lineBreakMode="truncatingTail" borderStyle="border" 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" pushIn="YES" lightByBackground="YES" lightByGray="YES"/> <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="smallSystem"/> <font key="font" metaFont="smallSystem"/>
@@ -246,9 +231,8 @@
</connections> </connections>
</popUpButton> </popUpButton>
<popUpButton verticalHuggingPriority="750" id="ZVm-yi-3cE"> <popUpButton verticalHuggingPriority="750" id="ZVm-yi-3cE">
<rect key="frame" x="177" y="252" width="111" height="17"/> <rect key="frame" x="177" y="311" width="111" height="17"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<animations/>
<popUpButtonCell key="cell" type="roundRect" bezelStyle="roundedRect" alignment="left" controlSize="small" lineBreakMode="truncatingTail" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="CbR-eu-sGI"> <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"/> <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="smallSystem"/> <font key="font" metaFont="smallSystem"/>
@@ -271,9 +255,8 @@
</connections> </connections>
</popUpButton> </popUpButton>
<popUpButton verticalHuggingPriority="750" id="tLh-V3-OfB"> <popUpButton verticalHuggingPriority="750" id="tLh-V3-OfB">
<rect key="frame" x="193" y="206" width="111" height="17"/> <rect key="frame" x="193" y="265" width="111" height="17"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<animations/>
<popUpButtonCell key="cell" type="roundRect" bezelStyle="roundedRect" alignment="left" controlSize="small" lineBreakMode="truncatingTail" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="UOb-Qe-IPw"> <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"/> <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="smallSystem"/> <font key="font" metaFont="smallSystem"/>
@@ -296,9 +279,8 @@
</connections> </connections>
</popUpButton> </popUpButton>
<textField verticalHuggingPriority="750" id="BWL-Nn-iGH"> <textField verticalHuggingPriority="750" id="BWL-Nn-iGH">
<rect key="frame" x="134" y="188" width="62" height="14"/> <rect key="frame" x="134" y="247" width="62" height="14"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<animations/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Language:" id="1dC-y4-0rx"> <textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Language:" id="1dC-y4-0rx">
<font key="font" metaFont="smallSystemBold"/> <font key="font" metaFont="smallSystemBold"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/> <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -309,9 +291,8 @@
</connections> </connections>
</textField> </textField>
<popUpButton verticalHuggingPriority="750" id="Ce4-O7-Iu4"> <popUpButton verticalHuggingPriority="750" id="Ce4-O7-Iu4">
<rect key="frame" x="203" y="186" width="111" height="17"/> <rect key="frame" x="203" y="245" width="111" height="17"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<animations/>
<popUpButtonCell key="cell" type="roundRect" bezelStyle="roundedRect" alignment="left" controlSize="small" lineBreakMode="truncatingTail" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="nqF-p0-mT7"> <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"/> <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="smallSystem"/> <font key="font" metaFont="smallSystem"/>
@@ -334,9 +315,8 @@
</connections> </connections>
</popUpButton> </popUpButton>
<textField verticalHuggingPriority="750" id="73q-gi-fe2"> <textField verticalHuggingPriority="750" id="73q-gi-fe2">
<rect key="frame" x="134" y="234" width="62" height="14"/> <rect key="frame" x="134" y="293" width="62" height="14"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<animations/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Language:" id="VkG-jW-ibO"> <textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Language:" id="VkG-jW-ibO">
<font key="font" metaFont="smallSystemBold"/> <font key="font" metaFont="smallSystemBold"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/> <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -347,9 +327,8 @@
</connections> </connections>
</textField> </textField>
<popUpButton verticalHuggingPriority="750" id="5rh-cM-iOg"> <popUpButton verticalHuggingPriority="750" id="5rh-cM-iOg">
<rect key="frame" x="203" y="232" width="111" height="17"/> <rect key="frame" x="203" y="291" width="111" height="17"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<animations/>
<popUpButtonCell key="cell" type="roundRect" bezelStyle="roundedRect" alignment="left" controlSize="small" lineBreakMode="truncatingTail" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="gZb-sF-UQs"> <popUpButtonCell key="cell" type="roundRect" bezelStyle="roundedRect" alignment="left" controlSize="small" lineBreakMode="truncatingTail" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="gZb-sF-UQs">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/> <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="smallSystem"/> <font key="font" metaFont="smallSystem"/>
@@ -372,9 +351,8 @@
</connections> </connections>
</popUpButton> </popUpButton>
<button toolTip="Organize the mp4 alternate groups" id="TV6-Sk-Bqr"> <button toolTip="Organize the mp4 alternate groups" id="TV6-Sk-Bqr">
<rect key="frame" x="111" y="140" width="119" height="18"/> <rect key="frame" x="111" y="199" width="119" height="18"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<animations/>
<buttonCell key="cell" type="check" title="Fix audio fallbacks" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="W6u-1c-BsI"> <buttonCell key="cell" type="check" title="Fix audio fallbacks" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="W6u-1c-BsI">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/> <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="smallSystem"/> <font key="font" metaFont="smallSystem"/>
@@ -387,9 +365,59 @@
</binding> </binding>
</connections> </connections>
</button> </button>
<button toolTip="Set the track without a language to the selected one" misplaced="YES" id="slL-2h-MPl">
<rect key="frame" x="111" y="163" width="160" height="18"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<buttonCell key="cell" type="check" title="Complete tracks language" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="cxz-2q-RIP">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="smallSystem"/>
</buttonCell>
<connections>
<binding destination="-2" name="value" keyPath="self.options.SBQueueFixTrackLanguage" id="NVa-C5-95d">
<dictionary key="options">
<bool key="NSValidatesImmediately" value="YES"/>
</dictionary>
</binding>
</connections>
</button>
<textField verticalHuggingPriority="750" misplaced="YES" id="swT-iM-shZ">
<rect key="frame" x="134" 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="GBM-Sa-9GJ">
<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.SBQueueFixTrackLanguage" id="0eo-Zt-d9J"/>
</connections>
</textField>
<popUpButton verticalHuggingPriority="750" misplaced="YES" id="ZZk-4j-Ji7">
<rect key="frame" x="203" 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="kEh-SN-iHZ">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="smallSystem"/>
<menu key="menu" title="OtherViews" id="LfV-JG-4EY"/>
</popUpButtonCell>
<connections>
<binding destination="-2" name="content" keyPath="self.languages" id="Xnw-Nt-5dZ">
<dictionary key="options">
<string key="NSNoSelectionPlaceholder">Unknown</string>
<string key="NSNotApplicablePlaceholder">Unknown</string>
<string key="NSNullPlaceholder">Unknown</string>
</dictionary>
</binding>
<binding destination="-2" name="selectedObject" keyPath="options.SBQueueFixTrackLanguageValue" previousBinding="Xnw-Nt-5dZ" id="eg8-T5-jSl">
<dictionary key="options">
<bool key="NSValidatesImmediately" value="YES"/>
</dictionary>
</binding>
<binding destination="-2" name="enabled" keyPath="self.options.SBQueueFixTrackLanguage" id="KJY-da-f0t"/>
</connections>
</popUpButton>
</subviews> </subviews>
<animations/> <point key="canvasLocation" x="21.5" y="323"/>
<point key="canvasLocation" x="486" y="599.5"/>
</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">
<declaredKeys> <declaredKeys>