aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/LibraryStructureController.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2021-02-24 22:02:47 +0100
committerJoshua M. Boniface <joshua@boniface.me>2021-02-26 21:01:50 -0500
commitef864e24b9f1d1709db270f0a81e15eb91028665 (patch)
tree9e3604bf7bbdb338f4b360327d326c1c0a2d54cf /Jellyfin.Api/Controllers/LibraryStructureController.cs
parentab054d6239b1f58ee7037cfbab8a38c8d06ae1c7 (diff)
Merge pull request #5301 from Bond-009/validinput
(cherry picked from commit 58609795007d4a5e4d9e94e92f7c82999ad8ad0a) Signed-off-by: Joshua M. Boniface <joshua@boniface.me>
Diffstat (limited to 'Jellyfin.Api/Controllers/LibraryStructureController.cs')
-rw-r--r--Jellyfin.Api/Controllers/LibraryStructureController.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/LibraryStructureController.cs b/Jellyfin.Api/Controllers/LibraryStructureController.cs
index 94995650c..328efea26 100644
--- a/Jellyfin.Api/Controllers/LibraryStructureController.cs
+++ b/Jellyfin.Api/Controllers/LibraryStructureController.cs
@@ -75,7 +75,7 @@ namespace Jellyfin.Api.Controllers
[ProducesResponseType(StatusCodes.Status204NoContent)]
public async Task<ActionResult> AddVirtualFolder(
[FromQuery] string? name,
- [FromQuery] string? collectionType,
+ [FromQuery] CollectionTypeOptions? collectionType,
[FromQuery, ModelBinder(typeof(CommaDelimitedArrayModelBinder))] string[] paths,
[FromBody] AddVirtualFolderDto? libraryOptionsDto,
[FromQuery] bool refreshLibrary = false)