Commit 1d23b980 authored by Felix Paul Kühne's avatar Felix Paul Kühne
Browse files

SupportedMedia checker: add additional check for any supported files

parent 310bac9c
......@@ -16,4 +16,6 @@
- (BOOL)isSupportedAudioMediaFormat;
- (BOOL)isSupportedSubtitleFormat;
- (BOOL)isSupportedFormat;
@end
......@@ -30,4 +30,10 @@
return ([self rangeOfString:kSupportedSubtitleFileExtensions options:options].location != NSNotFound);
}
- (BOOL)isSupportedFormat
{
NSUInteger options = NSRegularExpressionSearch | NSCaseInsensitiveSearch;
return ([self rangeOfString:kSupportedSubtitleFileExtensions options:options].location != NSNotFound) || ([self rangeOfString:kSupportedAudioFileExtensions options:options].location != NSNotFound) || ([self rangeOfString:kSupportedFileExtensions options:options].location != NSNotFound);
}
@end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment