diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-01-14 10:27:51 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-01-14 10:27:51 -0500 |
| commit | 6b2e090981ee79c57d16f5dabff6423d314f2348 (patch) | |
| tree | 4bef10f55890a7c3a224c5341826cbc7af99c0ec | |
| parent | e206f27839a573b357ebce972994586c2bfa8681 (diff) | |
fix vob file search
| -rw-r--r-- | MediaBrowser.Providers/MediaInfo/FFProbeVideoInfoProvider.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/MediaBrowser.Providers/MediaInfo/FFProbeVideoInfoProvider.cs b/MediaBrowser.Providers/MediaInfo/FFProbeVideoInfoProvider.cs index fc2c5c370..640dbd3fa 100644 --- a/MediaBrowser.Providers/MediaInfo/FFProbeVideoInfoProvider.cs +++ b/MediaBrowser.Providers/MediaInfo/FFProbeVideoInfoProvider.cs @@ -251,7 +251,9 @@ namespace MediaBrowser.Providers.MediaInfo // Try to eliminate menus and intros by skipping all files at the front of the list that are less than the minimum size // Once we reach a file that is at least the minimum, return all subsequent ones - var allVobs = Directory.EnumerateFiles(root, "*.vob", SearchOption.AllDirectories).ToList(); + var allVobs = Directory.EnumerateFiles(root, "*", SearchOption.AllDirectories) + .Where(file => string.Equals(Path.GetExtension(file), ".vob", StringComparison.OrdinalIgnoreCase)) + .ToList(); // If we didn't find any satisfying the min length, just take them all if (allVobs.Count == 0) |
