Update Emby.Naming/Video/VideoListResolver.cs

Co-authored-by: Bond-009 <bond.009@outlook.com>
pull/6096/head
Claus Vium 3 years ago committed by GitHub
parent 2d5ed7cb95
commit 3b5214e595
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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)

Loading…
Cancel
Save