aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/ItemUpdateController.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2026-06-02 18:24:08 +0200
committerGitHub <noreply@github.com>2026-06-02 18:24:08 +0200
commit52cf8d1ba4d3e5d99b55e0484569558d555925b9 (patch)
treee473751f7d94c8f0bc22e1a4bc1104118f169494 /Jellyfin.Api/Controllers/ItemUpdateController.cs
parent53eda14dccddbcbd8806150489ff8f4495814631 (diff)
parent5ce7170813e7ffbe8ac119692c2fc1675deebca7 (diff)
Merge pull request #16994 from theguymadmax/trim-tags
Trim tags
Diffstat (limited to 'Jellyfin.Api/Controllers/ItemUpdateController.cs')
-rw-r--r--Jellyfin.Api/Controllers/ItemUpdateController.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/ItemUpdateController.cs b/Jellyfin.Api/Controllers/ItemUpdateController.cs
index 4d697ab854..d560ee8238 100644
--- a/Jellyfin.Api/Controllers/ItemUpdateController.cs
+++ b/Jellyfin.Api/Controllers/ItemUpdateController.cs
@@ -288,7 +288,7 @@ public class ItemUpdateController : BaseJellyfinApiController
item.CustomRating = request.CustomRating;
var currentTags = item.Tags;
- var newTags = request.Tags.Distinct(StringComparer.OrdinalIgnoreCase).ToArray();
+ var newTags = request.Tags.Select(t => t.Trim()).Distinct(StringComparer.OrdinalIgnoreCase).ToArray();
var removedTags = currentTags.Except(newTags).ToList();
var addedTags = newTags.Except(currentTags).ToList();
item.Tags = newTags;