Fix ArrayIndexOutOfBounds
This commit is contained in:
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…
Reference in New Issue
Block a user