Update Emby.Naming/Video/VideoListResolver.cs

Co-authored-by: Bond-009 <bond.009@outlook.com>
This commit is contained in:
Claus Vium 2021-05-28 19:01:29 +02:00 committed by GitHub
parent 2d5ed7cb95
commit 3b5214e595
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -281,8 +281,7 @@ namespace Emby.Naming.Video
var trimmedSecondBaseName = TrimFilenameDelimiters(secondBaseName, videoFlagDelimiters);
var result = new List<VideoFileInfo>();
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)