aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/LibraryStructureController.cs
diff options
context:
space:
mode:
authorJPVenson <github@jpb.email>2024-11-14 10:14:41 +0000
committerJPVenson <github@jpb.email>2024-11-14 10:14:41 +0000
commitaea255f91026598c297d11f032cc483b8608616d (patch)
tree9d1ba19fb8cdb9cb19d205168d0631537ffb0399 /Jellyfin.Api/Controllers/LibraryStructureController.cs
parent432cfba2e2516709dfaea004a2d74095aac6a6f3 (diff)
Deterministic tests my ***
Diffstat (limited to 'Jellyfin.Api/Controllers/LibraryStructureController.cs')
-rw-r--r--Jellyfin.Api/Controllers/LibraryStructureController.cs9
1 files changed, 8 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/LibraryStructureController.cs b/Jellyfin.Api/Controllers/LibraryStructureController.cs
index c3e3b659b..7838c2f61 100644
--- a/Jellyfin.Api/Controllers/LibraryStructureController.cs
+++ b/Jellyfin.Api/Controllers/LibraryStructureController.cs
@@ -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();
}