Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // O(n^2)
- /*
- foreach (var file in Directory.GetFiles(parentDir, "*"))
- {
- // not video file in directory where the subtitle is located
- if (Utilities.VideoFileExtensions.Contains(Path.GetExtension(file)) == false)
- {
- continue;
- }
- string name = Path.GetFileNameWithoutExtension(file);
- string subtitleFileName = Path.GetFileName(_subtitleFileName);
- // video file found!
- if (subtitleFileName.StartsWith(name, StringComparison.OrdinalIgnoreCase))
- {
- VideoFileName = file;
- break;
- }
- }
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement