mirror of
https://github.com/fergalmoran/Readarr.git
synced 2026-02-08 17:06:38 +00:00
Add error message for invalid Root Folder in Ebook Tag Service
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user