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

View File

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