Add error message for invalid Root Folder in Ebook Tag Service

pull/3144/head
Bogdan 11 months ago
parent 1cf956a9d9
commit 9865e92cea

@ -175,6 +175,12 @@ namespace NzbDrone.Core.MediaFiles
}
var rootFolder = _rootFolderService.GetBestRootFolder(file.Path);
if (rootFolder == null)
{
throw new Exception($"File '{file.Path}' is not in a root folder.");
}
_calibre.SetFields(file, rootFolder.CalibreSettings, updateCover, embedMetadata);
}

Loading…
Cancel
Save