mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-05 21:37:10 -04:00
fix vob file search
This commit is contained in:
parent
e206f27839
commit
6b2e090981
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user