Add a queue action to remove tracks names.
This commit is contained in:
1 parent
f2fbfb4271
commit
8b8946993a
6 files changed
+82
-19
No files matched your search
+34
-1
@@ -330,7 +330,7 @@
|
||||
}
|
||||
|
||||
- (NSString *)description {
|
||||
return NSLocalizedString(@"Fixing Fallbacks", @"Action description.");
|
||||
return NSLocalizedString(@"Fixi Fallbacks", @"Action description.");
|
||||
}
|
||||
|
||||
- (NSString *)localizedDescription {
|
||||
@@ -350,6 +350,39 @@
|
||||
|
||||
@end
|
||||
|
||||
/**
|
||||
* An actions that remove the tracks names.
|
||||
*/
|
||||
@implementation SBQueueClearTrackNameAction
|
||||
|
||||
- (void)runAction:(SBQueueItem *)item {
|
||||
for (MP42Track *track in item.mp4File.tracks) {
|
||||
track.name = @"";
|
||||
}
|
||||
}
|
||||
|
||||
- (NSString *)description {
|
||||
return NSLocalizedString(@"Clear tracks names", @"Action description.");
|
||||
}
|
||||
|
||||
- (NSString *)localizedDescription {
|
||||
return NSLocalizedString(@"Clearing tracks names", @"Action localized description.");
|
||||
}
|
||||
|
||||
+ (BOOL)supportsSecureCoding {
|
||||
return YES;
|
||||
}
|
||||
|
||||
- (instancetype)initWithCoder:(NSCoder *)coder {
|
||||
self = [super init];
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void)encodeWithCoder:(NSCoder *)coder {}
|
||||
|
||||
@end
|
||||
|
||||
|
||||
/**
|
||||
* An actions that set unknown language tracks to preferred one.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user