mirror of
https://github.com/Readarr/Readarr
synced 2026-02-12 09:42:04 +01:00
Add error message for invalid Root Folder in Ebook Tag Service
This commit is contained in:
parent
1cf956a9d9
commit
9865e92cea
1 changed files with 6 additions and 0 deletions
|
|
@ -175,6 +175,12 @@ private void WriteTagsInternal(BookFile file, bool updateCover, bool embedMetada
|
|||
}
|
||||
|
||||
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…
Reference in a new issue