Make a case insensitive comparison.
This commit is contained in:
1 parent
40781c5ad1
commit
7406bd4bbd
1 file changed
+1
-1
@@ -29,7 +29,7 @@
|
|||||||
error:nil];
|
error:nil];
|
||||||
|
|
||||||
for (NSURL *dirUrl in directory) {
|
for (NSURL *dirUrl in directory) {
|
||||||
if ([[dirUrl pathExtension] isEqualToString:@"srt"]) {
|
if ([[dirUrl pathExtension] caseInsensitiveCompare:@"srt"] == NSOrderedSame) {
|
||||||
NSComparisonResult result;
|
NSComparisonResult result;
|
||||||
NSString *movieFilename = [[url URLByDeletingPathExtension] lastPathComponent];
|
NSString *movieFilename = [[url URLByDeletingPathExtension] lastPathComponent];
|
||||||
NSString *subtitleFilename = [[dirUrl URLByDeletingPathExtension] lastPathComponent];
|
NSString *subtitleFilename = [[dirUrl URLByDeletingPathExtension] lastPathComponent];
|
||||||
|
|||||||
Reference in new issue
Block a user