diff --git a/Classes/MetadataImporters/iTunesStore.m b/Classes/MetadataImporters/iTunesStore.m index de65ecc..f9decf6 100755 --- a/Classes/MetadataImporters/iTunesStore.m +++ b/Classes/MetadataImporters/iTunesStore.m @@ -315,11 +315,15 @@ NSInteger sortMP42Metadata(id ep1, id ep2, void *context) NSString *season = nil; if (![[store valueForKey:@"season"] isEqualToString:@""]) { NSArray *sa = [[s lowercaseString] componentsSeparatedByString:[NSString stringWithFormat:@", %@ ", [store valueForKey:@"season"]]]; - if ([sa count] > 1) { - season = [sa objectAtIndex:1]; - } else { - season = @"1"; - } + if (sa.count <= 1) { + sa = [[s lowercaseString] componentsSeparatedByString:[NSString stringWithFormat:@", %@ ", @"book"]]; + } + + if ([sa count] > 1) { + season = [NSString stringWithFormat:@"%ld",(long) [[sa objectAtIndex:1] integerValue]]; + } else { + season = @"1"; + } } if (season) { [metadata setTag:season forKey:@"TV Season"]; diff --git a/Classes/SBDocument.m b/Classes/SBDocument.m index 9f36fca..c4c62df 100755 --- a/Classes/SBDocument.m +++ b/Classes/SBDocument.m @@ -606,11 +606,8 @@ objectValueForTableColumn:(NSTableColumn *)tableColumn [[importWindow window] orderOut:nil]; [importWindow autorelease], importWindow = nil; - // IKImageBrowserView is a bit problematic, do the refresh at the end of the run loop - dispatch_async(dispatch_get_main_queue(), ^{ - [fileTracksTable reloadData]; - [self tableViewSelectionDidChange:nil]; - }); + [fileTracksTable reloadData]; + [self tableViewSelectionDidChange:nil]; } - (IBAction)sendToQueue:(id)sender diff --git a/Classes/SBLogWindowController.m b/Classes/SBLogWindowController.m index 638e733..f399206 100644 --- a/Classes/SBLogWindowController.m +++ b/Classes/SBLogWindowController.m @@ -23,7 +23,7 @@ - (instancetype)init { if ((self = [super initWithWindowNibName:@"SBLogWindow"])) { - [self window]; + (void)[self window]; } return self; diff --git a/Classes/SBQueueItem.m b/Classes/SBQueueItem.m index 39b8030..57625b9 100755 --- a/Classes/SBQueueItem.m +++ b/Classes/SBQueueItem.m @@ -289,8 +289,10 @@ // Convert from a file reference url to a normal url // the file will be replaced if optimized, and the reference url // may point to nil + [self willChangeValueForKey:@"fileURL"]; [_fileURL autorelease]; _fileURL = [[self.URL filePathURL] retain]; + [self didChangeValueForKey:@"fileURL"]; if (!self.cancelled) { if ([self.URL isEqualTo:self.destURL] && [self.mp4File hasFileRepresentation]) { @@ -308,7 +310,9 @@ // Optimize the file if (!self.cancelled && optimize) { + self.localizedWorkingDescription = NSLocalizedString(@"Optimizing", @""); noErr = [self.mp4File optimize]; + self.localizedWorkingDescription = nil; } if (!noErr) { diff --git a/English.lproj/SBDocument.xib b/English.lproj/SBDocument.xib index 728b532..31e00e0 100755 --- a/English.lproj/SBDocument.xib +++ b/English.lproj/SBDocument.xib @@ -1,9 +1,9 @@ - + - + @@ -59,7 +59,7 @@ - + @@ -330,7 +330,6 @@ - @@ -338,6 +337,7 @@ + diff --git a/Subler.xcodeproj/project.pbxproj b/Subler.xcodeproj/project.pbxproj index 84d7032..d2d7f28 100755 --- a/Subler.xcodeproj/project.pbxproj +++ b/Subler.xcodeproj/project.pbxproj @@ -587,7 +587,7 @@ 2A37F4A9FDCFA73011CA2CEA /* Project object */ = { isa = PBXProject; attributes = { - LastUpgradeCheck = 0500; + LastUpgradeCheck = 0630; }; buildConfigurationList = C05733CB08A9546B00998B17 /* Build configuration list for PBXProject "Subler" */; compatibilityVersion = "Xcode 3.2";