Add a preference to automatically manage media characteristics.
This commit is contained in:
4 files changed
+36
-6
No files matched your search
@@ -25,6 +25,7 @@ import Cocoa
|
||||
let settings: [String: Any] = ["SBSaveFormat": "m4v",
|
||||
"defaultSaveFormat": "0",
|
||||
"SBOrganizeAlternateGroups": true,
|
||||
"SBInferMediaCharacteristics": true,
|
||||
"SBAudioMixdown": "1",
|
||||
"SBAudioBitrate": "96",
|
||||
"SBAudioConvertAC3": true,
|
||||
|
||||
@@ -321,6 +321,9 @@ static NSDictionary *_detailMonospacedAttr;
|
||||
|
||||
if ([[[NSUserDefaults standardUserDefaults] valueForKey:@"SBOrganizeAlternateGroups"] boolValue]) {
|
||||
[self.mp4 organizeAlternateGroups];
|
||||
if ([[[NSUserDefaults standardUserDefaults] valueForKey:@"SBInferMediaCharacteristics"] boolValue]) {
|
||||
[self.mp4 inferMediaCharacteristics];
|
||||
}
|
||||
}
|
||||
|
||||
switch (saveOperation) {
|
||||
@@ -1009,6 +1012,9 @@ static NSDictionary *_detailMonospacedAttr;
|
||||
|
||||
if ([[[NSUserDefaults standardUserDefaults] valueForKey:@"SBOrganizeAlternateGroups"] boolValue]) {
|
||||
[self.mp4 organizeAlternateGroups];
|
||||
if ([[[NSUserDefaults standardUserDefaults] valueForKey:@"SBInferMediaCharacteristics"] boolValue]) {
|
||||
[self.mp4 inferMediaCharacteristics];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1124,6 +1130,8 @@ static NSDictionary *_detailMonospacedAttr;
|
||||
- (IBAction)iTunesFriendlyTrackGroups:(id)sender
|
||||
{
|
||||
[self.mp4 organizeAlternateGroups];
|
||||
[self.mp4 inferMediaCharacteristics];
|
||||
|
||||
[self.tracksTable reloadData];
|
||||
[self reloadPropertyView];
|
||||
[self updateChangeCount:NSChangeDone];
|
||||
|
||||
@@ -90,6 +90,7 @@
|
||||
|
||||
- (void)runAction:(SBQueueItem *)item {
|
||||
[item.mp4File organizeAlternateGroups];
|
||||
[item.mp4File inferMediaCharacteristics];
|
||||
}
|
||||
|
||||
- (NSString *)description {
|
||||
|
||||
Reference in new issue
Block a user