MacGui: random fixes.
This commit is contained in:
1 parent
194fbedc7c
commit
5d46d627d7
6 files changed
+21
-16
No files matched your search
@@ -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"];
|
||||
|
||||
Reference in new issue
Block a user