Fix ArrayIndexOutOfBounds

pull/6054/head
cvium 4 years ago
parent be4aeb5c2c
commit 81ac11828b

@ -108,7 +108,7 @@ namespace MediaBrowser.Providers.MediaInfo
Path = fullName Path = fullName
}; };
} }
else if (fileNameWithoutExtension.Length >= videoFileNameWithoutExtension.Length else if (fileNameWithoutExtension.Length > videoFileNameWithoutExtension.Length
&& fileNameWithoutExtension[videoFileNameWithoutExtension.Length] == '.' && fileNameWithoutExtension[videoFileNameWithoutExtension.Length] == '.'
&& fileNameWithoutExtension.StartsWith(videoFileNameWithoutExtension, StringComparison.OrdinalIgnoreCase)) && fileNameWithoutExtension.StartsWith(videoFileNameWithoutExtension, StringComparison.OrdinalIgnoreCase))
{ {

Loading…
Cancel
Save