[PR #15680] [MERGED] Fix ItemAdded event triggering when updating metadata #14385

Closed
opened 2026-02-07 07:29:01 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/jellyfin/jellyfin/pull/15680
Author: @theguymadmax
Created: 12/1/2025
Status: Merged
Merged: 12/4/2025
Merged by: @crobibero

Base: release-10.11.zHead: fix-itemAdded-tiggering-on-update


📝 Commits (1)

  • bcbfead Fix ItemAdded event triggering when updating metadata

📊 Changes

1 file changed (+0 additions, -2 deletions)

View changed files

📝 MediaBrowser.Providers/Manager/ProviderManager.cs (+0 -2)

📄 Description

Changes
Remove CreateItem call in ProviderManager.SaveMetadataAsync which was causing ItemAdded events to trigger when updating existing items. The item is already saved to the database by UpdateItemsAsync after metadata files are written.

Issues
Fixes #15245
Fixes https://github.com/jellyfin/jellyfin-plugin-webhook/issues/356
Fixes https://github.com/jellyfin/jellyfin-plugin-webhook/issues/358


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/jellyfin/jellyfin/pull/15680 **Author:** [@theguymadmax](https://github.com/theguymadmax) **Created:** 12/1/2025 **Status:** ✅ Merged **Merged:** 12/4/2025 **Merged by:** [@crobibero](https://github.com/crobibero) **Base:** `release-10.11.z` ← **Head:** `fix-itemAdded-tiggering-on-update` --- ### 📝 Commits (1) - [`bcbfead`](https://github.com/jellyfin/jellyfin/commit/bcbfead899f1c8c60d63c08cdd4298b6af27514e) Fix ItemAdded event triggering when updating metadata ### 📊 Changes **1 file changed** (+0 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `MediaBrowser.Providers/Manager/ProviderManager.cs` (+0 -2) </details> ### 📄 Description <!-- Ensure your title is short, descriptive, and in the imperative mood (Fix X, Change Y, instead of Fixed X, Changed Y). For a good inspiration of what to write in commit messages and PRs please review https://chris.beams.io/posts/git-commit/ and our documentation. --> **Changes** Remove `CreateItem` call in `ProviderManager.SaveMetadataAsync` which was causing `ItemAdded` events to trigger when updating existing items. The item is already saved to the database by `UpdateItemsAsync` after metadata files are written. **Issues** Fixes #15245 Fixes https://github.com/jellyfin/jellyfin-plugin-webhook/issues/356 Fixes https://github.com/jellyfin/jellyfin-plugin-webhook/issues/358 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-07 07:29:01 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#14385