Fix build

This commit is contained in:
Bond_009
2021-05-07 00:52:06 +02:00
parent fb090df0b5
commit 4367b97a54
12 changed files with 24 additions and 20 deletions

View File

@@ -44,6 +44,11 @@ namespace Emby.Server.Implementations.Library
// Make sure DateCreated and DateModified have values
var fileInfo = directoryService.GetFile(item.Path);
if (fileInfo == null)
{
throw new FileNotFoundException("Can't find item path.", item.Path);
}
SetDateCreated(item, fileInfo);
EnsureName(item, fileInfo);