From 3b5214e59526095057a7761ca6c8edb5a5af1d1f Mon Sep 17 00:00:00 2001 From: Claus Vium Date: Fri, 28 May 2021 19:01:29 +0200 Subject: [PATCH] Update Emby.Naming/Video/VideoListResolver.cs Co-authored-by: Bond-009 --- Emby.Naming/Video/VideoListResolver.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Emby.Naming/Video/VideoListResolver.cs b/Emby.Naming/Video/VideoListResolver.cs index 65cf7c928..7da2dcd7a 100644 --- a/Emby.Naming/Video/VideoListResolver.cs +++ b/Emby.Naming/Video/VideoListResolver.cs @@ -281,8 +281,7 @@ namespace Emby.Naming.Video var trimmedSecondBaseName = TrimFilenameDelimiters(secondBaseName, videoFlagDelimiters); var result = new List(); - var pos = remainingFiles.Count - 1; - for (; pos >= 0; pos--) + for (var pos = remainingFiles.Count - 1; pos >= 0; pos--) { var file = remainingFiles[pos]; if (file.ExtraType == null)