aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/ItemUpdateController.cs
diff options
context:
space:
mode:
authorCody Robibero <cody@robibe.ro>2026-08-22 08:49:07 -0400
committerGitHub <noreply@github.com>2026-08-22 08:49:07 -0400
commit49112163ebb5cb6fbec37c3b7b3e9a4875f47940 (patch)
tree1fc16ae1bd610095efc019e546ddd7faee3c694a /Jellyfin.Api/Controllers/ItemUpdateController.cs
parent0d4cbb999bbac9920caeeb5cd7174b1dc9758bff (diff)
parent42c70fba63d72a4113a7b8f2e06293e512cc6914 (diff)
Merge pull request #17584 from Shadowghost/safeguard-invalid-provider-ids
Safeguard against invalid provider ids
Diffstat (limited to 'Jellyfin.Api/Controllers/ItemUpdateController.cs')
-rw-r--r--Jellyfin.Api/Controllers/ItemUpdateController.cs10
1 files changed, 1 insertions, 9 deletions
diff --git a/Jellyfin.Api/Controllers/ItemUpdateController.cs b/Jellyfin.Api/Controllers/ItemUpdateController.cs
index 36c82cf461..65fffc4181 100644
--- a/Jellyfin.Api/Controllers/ItemUpdateController.cs
+++ b/Jellyfin.Api/Controllers/ItemUpdateController.cs
@@ -428,15 +428,7 @@ public class ItemUpdateController : BaseJellyfinApiController
if (request.ProviderIds is not null)
{
- foreach (var pair in request.ProviderIds.ToList())
- {
- if (string.IsNullOrEmpty(pair.Value))
- {
- request.ProviderIds.Remove(pair.Key);
- }
- }
-
- item.ProviderIds = request.ProviderIds;
+ item.SetProviderIds(request.ProviderIds);
}
if (item is Video video)