Merge pull request #5848 from sgmoore/IndexError

Fix ArgumentOutOfRangeException scanning AudioBooks
This commit is contained in:
Claus Vium 2021-04-19 08:29:28 +02:00 committed by GitHub
commit 665220c4fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -201,6 +201,11 @@ namespace Emby.Server.Implementations.Library.Resolvers.Audio
continue;
}
if (resolvedItem.Files.Count == 0)
{
continue;
}
var firstMedia = resolvedItem.Files[0];
var libraryItem = new T