Fix indentation in MediaBrowser.Providers/MediaInfo/AudioResolver.cs

If statement which checks if filename of audio and video file match or if audio file starts with video filename

Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
This commit is contained in:
Jonas Resch 2021-11-27 16:55:19 +01:00 committed by Jonas Resch
parent 9433072f90
commit 61b191d345

View File

@ -89,10 +89,10 @@ namespace MediaBrowser.Providers.MediaInfo
} }
// The audio filename must either be equal to the video filename or start with the video filename followed by a dot // The audio filename must either be equal to the video filename or start with the video filename followed by a dot
if (videoFileNameWithoutExtension.Equals(fileNameWithoutExtension, StringComparison.OrdinalIgnoreCase) || if (videoFileNameWithoutExtension.Equals(fileNameWithoutExtension, StringComparison.OrdinalIgnoreCase)
(fileNameWithoutExtension.Length > videoFileNameWithoutExtension.Length || (fileNameWithoutExtension.Length > videoFileNameWithoutExtension.Length
&& fileNameWithoutExtension[videoFileNameWithoutExtension.Length] == '.' && fileNameWithoutExtension[videoFileNameWithoutExtension.Length] == '.'
&& fileNameWithoutExtension.StartsWith(videoFileNameWithoutExtension, StringComparison.OrdinalIgnoreCase))) && fileNameWithoutExtension.StartsWith(videoFileNameWithoutExtension, StringComparison.OrdinalIgnoreCase)))
{ {
paths.Add(files[i]); paths.Add(files[i]);
} }