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
@interface SBOptionsViewController : NSViewController {
@private
IBOutlet NSPopUpButton *_destButton;
NSMutableDictionary *_options;
NSMutableArray *_sets;
NSArray *_moviesProviders;
NSArray *_tvShowsProviders;
NSArray *_movieLanguages;
NSArray *_tvShowLanguages;
NSURL *_destination;
}
@interface SBOptionsViewController : NSViewController
- (instancetype)initWithOptions:(NSMutableDictionary *)options;
+17 -1
View File
@@ -16,7 +16,20 @@
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, strong) NSMutableArray *sets;
@@ -26,6 +39,8 @@ static void *SBOptionsViewContex = &SBOptionsViewContex;
@property (nonatomic, strong) NSArray *movieLanguages;
@property (nonatomic, strong) NSArray *tvShowLanguages;
@property (nonatomic, strong) NSArray *languages;
- (IBAction)chooseDestination:(id)sender;
- (IBAction)destination:(id)sender;
@@ -42,6 +57,7 @@ static void *SBOptionsViewContex = &SBOptionsViewContex;
_sets = [[NSMutableArray alloc] init];
_moviesProviders = [SBMetadataImporter movieProviders];
_tvShowsProviders = [SBMetadataImporter tvProviders];
_languages = [[MP42Languages defaultManager] languages];
}
return self;
+4
View File
@@ -259,6 +259,10 @@ static void *SBQueueContex = &SBQueueContex;
[item addAction:[[SBQueueFixFallbacksAction alloc] init]];
}
if ([(self.options)[SBQueueFixTrackLanguage] boolValue]) {
[item addAction:[[SBQueueSetLanguageAction alloc] initWithLanguage:self.options[SBQueueFixTrackLanguageValue]]];
}
if ((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 SBQueueOptimize;
extern NSString * const SBQueueFixTrackLanguage;
extern NSString * const SBQueueFixTrackLanguageValue;
extern NSString * const SBQueueMovieProvider;
extern NSString * const SBQueueTVShowProvider;
extern NSString * const SBQueueMovieProviderLanguage;
+7 -4
View File
@@ -20,6 +20,9 @@ NSString * const SBQueueSubtitles = @"SBQueueSubtitles";
NSString * const SBQueueAutoStart = @"SBQueueAutoStart";
NSString * const SBQueueOptimize = @"SBQueueOptimize";
NSString * const SBQueueFixTrackLanguage = @"SBQueueFixTrackLanguage";
NSString * const SBQueueFixTrackLanguageValue = @"SBQueueFixTrackLanguageValue";
NSString * const SBQueueDestination = @"SBQueueDestination";
NSString * const SBQueueMovieProvider = @"SBQueueMovieProvider";
@@ -37,8 +40,7 @@ NSString * const SBQueueSet = @"SBQueueSet";
if (self) {
_options = [[NSMutableDictionary alloc] init];
NSArray *keys = @[SBQueueFileType, SBQueueOrganize, SBQueueFixFallbacks, SBQueueMetadata, SBQueueSubtitles, SBQueueAutoStart, SBQueueOptimize,
SBQueueMovieProvider, SBQueueTVShowProvider, SBQueueMovieProviderLanguage, SBQueueTVShowProviderLanguage];
NSArray *keys = @[SBQueueFileType, SBQueueOrganize, SBQueueFixTrackLanguage, SBQueueFixTrackLanguageValue, SBQueueFixFallbacks, SBQueueMetadata, SBQueueSubtitles, SBQueueAutoStart, SBQueueOptimize, SBQueueMovieProvider, SBQueueTVShowProvider, SBQueueMovieProviderLanguage, SBQueueTVShowProviderLanguage];
[keys enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) {
self.options[obj] = [[NSUserDefaults standardUserDefaults] valueForKey:obj];
@@ -62,6 +64,8 @@ NSString * const SBQueueSet = @"SBQueueSet";
+ (void)registerUserDefaults {
[[NSUserDefaults standardUserDefaults] registerDefaults:@{ SBQueueFileType : @"mp4",
SBQueueOrganize : @YES,
SBQueueFixTrackLanguage: @NO,
SBQueueFixTrackLanguageValue: @"English",
SBQueueFixFallbacks: @NO,
SBQueueMetadata : @NO,
SBQueueSubtitles: @YES,
@@ -77,8 +81,7 @@ NSString * const SBQueueSet = @"SBQueueSet";
* Save the queue user defaults
*/
- (void)saveUserDefaults {
NSArray<NSString *> *keys = @[SBQueueFileType, SBQueueOrganize, SBQueueFixFallbacks, SBQueueMetadata, SBQueueSubtitles, SBQueueAutoStart, SBQueueOptimize,
SBQueueMovieProvider, SBQueueTVShowProvider, SBQueueMovieProviderLanguage, SBQueueTVShowProviderLanguage];
NSArray<NSString *> *keys = @[SBQueueFileType, SBQueueOrganize, SBQueueFixTrackLanguage, SBQueueFixTrackLanguageValue, SBQueueFixFallbacks, SBQueueMetadata, SBQueueSubtitles, SBQueueAutoStart, SBQueueOptimize, SBQueueMovieProvider, SBQueueTVShowProvider, SBQueueMovieProviderLanguage, SBQueueTVShowProviderLanguage];
[keys enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) {
[[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"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="9060" systemVersion="15C47a" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="11173.2" systemVersion="16A238m" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
<dependencies>
<deployment identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="9060"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="11173.2"/>
</dependencies>
<objects>
<customObject id="-2" userLabel="File's Owner" customClass="SBOptionsViewController">
@@ -13,14 +13,13 @@
</customObject>
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
<customView id="UlG-O3-eNc" userLabel="OptionsView">
<rect key="frame" x="0.0" y="0.0" width="334" height="299"/>
<customView misplaced="YES" id="UlG-O3-eNc" userLabel="OptionsView">
<rect key="frame" x="0.0" y="0.0" width="357" height="358"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<subviews>
<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"/>
<animations/>
<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"/>
<font key="font" metaFont="smallSystem"/>
@@ -34,9 +33,8 @@
</connections>
</button>
<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"/>
<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">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="smallSystem"/>
@@ -50,9 +48,8 @@
</connections>
</button>
<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"/>
<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">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="smallSystem"/>
@@ -66,9 +63,8 @@
</connections>
</button>
<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"/>
<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">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="smallSystem"/>
@@ -82,9 +78,8 @@
</connections>
</button>
<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"/>
<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">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="smallSystem"/>
@@ -97,10 +92,9 @@
</binding>
</connections>
</button>
<popUpButton verticalHuggingPriority="750" id="86l-GG-SpO">
<rect key="frame" x="171" y="79" width="133" height="17"/>
<popUpButton verticalHuggingPriority="750" misplaced="YES" id="86l-GG-SpO">
<rect key="frame" x="174" y="93" width="128" height="17"/>
<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">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="smallSystem"/>
@@ -122,9 +116,8 @@
</popUpButtonCell>
</popUpButton>
<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"/>
<animations/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Location:" id="17e-9u-rVn">
<font key="font" metaFont="smallSystemBold"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -132,9 +125,8 @@
</textFieldCell>
</textField>
<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"/>
<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">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="smallSystem"/>
@@ -150,19 +142,17 @@
</connections>
</popUpButton>
<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"/>
<animations/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="File Type:" id="UbR-KJ-8iR">
<font key="font" metaFont="smallSystemBold"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
<textField verticalHuggingPriority="750" id="NhN-Lg-awX">
<rect key="frame" x="112" y="101" width="61" height="14"/>
<textField verticalHuggingPriority="750" misplaced="YES" id="NhN-Lg-awX">
<rect key="frame" x="110" y="115" width="61" height="14"/>
<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">
<font key="font" metaFont="smallSystemBold"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -170,9 +160,8 @@
</textFieldCell>
</textField>
<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"/>
<animations/>
<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"/>
@@ -183,9 +172,8 @@
</connections>
</textField>
<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"/>
<animations/>
<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"/>
@@ -196,9 +184,8 @@
</connections>
</textField>
<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"/>
<animations/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Global options:" id="NBN-VA-pg2">
<font key="font" metaFont="smallSystemBold"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -206,19 +193,17 @@
</textFieldCell>
</textField>
<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"/>
<animations/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Add item:" id="9ls-xq-YGz">
<font key="font" metaFont="smallSystemBold"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
<popUpButton verticalHuggingPriority="750" id="DVM-Js-DwK">
<rect key="frame" x="176" y="99" width="128" height="17"/>
<popUpButton verticalHuggingPriority="750" misplaced="YES" id="DVM-Js-DwK">
<rect key="frame" x="174" y="113" width="128" height="17"/>
<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">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="smallSystem"/>
@@ -246,9 +231,8 @@
</connections>
</popUpButton>
<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"/>
<animations/>
<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"/>
@@ -271,9 +255,8 @@
</connections>
</popUpButton>
<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"/>
<animations/>
<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"/>
@@ -296,9 +279,8 @@
</connections>
</popUpButton>
<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"/>
<animations/>
<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"/>
@@ -309,9 +291,8 @@
</connections>
</textField>
<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"/>
<animations/>
<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"/>
@@ -334,9 +315,8 @@
</connections>
</popUpButton>
<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"/>
<animations/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Language:" id="VkG-jW-ibO">
<font key="font" metaFont="smallSystemBold"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -347,9 +327,8 @@
</connections>
</textField>
<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"/>
<animations/>
<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"/>
<font key="font" metaFont="smallSystem"/>
@@ -372,9 +351,8 @@
</connections>
</popUpButton>
<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"/>
<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">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="smallSystem"/>
@@ -387,9 +365,59 @@
</binding>
</connections>
</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>
<animations/>
<point key="canvasLocation" x="486" y="599.5"/>
<point key="canvasLocation" x="21.5" y="323"/>
</customView>
<arrayController objectClassName="Set" automaticallyPreparesContent="YES" id="vyv-na-Xpo" userLabel="Set Controller">
<declaredKeys>