Deterministic tests my ***

This commit is contained in:
JPVenson
2024-11-14 10:14:41 +00:00
parent 432cfba2e2
commit aea255f910
3 changed files with 11 additions and 4 deletions

View File

@@ -88,7 +88,14 @@ public class LibraryStructureController : BaseJellyfinApiController
libraryOptions.PathInfos = Array.ConvertAll(paths, i => new MediaPathInfo(i));
}
await _libraryManager.AddVirtualFolder(name, collectionType, libraryOptions, refreshLibrary).ConfigureAwait(false);
try
{
await _libraryManager.AddVirtualFolder(name, collectionType, libraryOptions, refreshLibrary).ConfigureAwait(false);
}
catch (System.Exception ex)
{
return BadRequest(ex.ToString());
}
return NoContent();
}