mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Reverted Test code
This commit is contained in:
parent
c5488f8ead
commit
432cfba2e2
@ -106,14 +106,7 @@ public class LibraryStructureController : BaseJellyfinApiController
|
|||||||
[FromQuery] string name,
|
[FromQuery] string name,
|
||||||
[FromQuery] bool refreshLibrary = false)
|
[FromQuery] bool refreshLibrary = false)
|
||||||
{
|
{
|
||||||
try
|
await _libraryManager.RemoveVirtualFolder(name, refreshLibrary).ConfigureAwait(false);
|
||||||
{
|
|
||||||
await _libraryManager.RemoveVirtualFolder(name, refreshLibrary).ConfigureAwait(false);
|
|
||||||
}
|
|
||||||
catch (Exception ex)
|
|
||||||
{
|
|
||||||
return BadRequest(ex.ToString());
|
|
||||||
}
|
|
||||||
|
|
||||||
return NoContent();
|
return NoContent();
|
||||||
}
|
}
|
||||||
|
@ -1290,6 +1290,11 @@ public sealed class BaseItemRepository(
|
|||||||
{
|
{
|
||||||
foreach (var ancestorId in item.AncestorIds)
|
foreach (var ancestorId in item.AncestorIds)
|
||||||
{
|
{
|
||||||
|
if (!context.BaseItems.Any(f => f.Id == ancestorId))
|
||||||
|
{
|
||||||
|
throw new InvalidOperationException($"Cannot link non-existent parent: {ancestorId}");
|
||||||
|
}
|
||||||
|
|
||||||
context.AncestorIds.Add(new AncestorId()
|
context.AncestorIds.Add(new AncestorId()
|
||||||
{
|
{
|
||||||
ParentItemId = ancestorId,
|
ParentItemId = ancestorId,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user