Added a set action. Plus remove some gcd code that had no benefit at all.
This commit is contained in:
1 parent
60490b4039
commit
99553b5dfe
9 files changed
+134
-80
No files matched your search
@@ -125,8 +125,6 @@ static NSString *fileType = @"mp4";
|
||||
|
||||
if ([[NSUserDefaults standardUserDefaults] valueForKey:@"SBQueueDestination"]) {
|
||||
[_options setObject:[NSURL fileURLWithPath:[[NSUserDefaults standardUserDefaults] valueForKey:@"SBQueueDestination"]] forKey:@"SBQueueDestination"];
|
||||
} else {
|
||||
[_options setObject:nil forKey:@"SBQueueDestination"];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -517,6 +515,11 @@ static NSString *fileType = @"mp4";
|
||||
[item addAction:[[[SBQueueOrganizeGroupsAction alloc] init] autorelease]];
|
||||
}
|
||||
|
||||
if ([self.options objectForKey:@"SBQueueSet"]) {
|
||||
[item addAction:[[[SBQueueSetAction alloc] initWithSet:[self.options objectForKey:@"SBQueueSet"]] autorelease]];
|
||||
}
|
||||
|
||||
|
||||
NSURL *destination = [self.options objectForKey:@"SBQueueDestination"];
|
||||
if (destination) {
|
||||
destination = [[[destination URLByAppendingPathComponent:[url lastPathComponent]] URLByDeletingPathExtension] URLByAppendingPathExtension:fileType];
|
||||
|
||||
Reference in new issue
Block a user