From d06fbe86e3eb51fd793d8ac256d4d8fc70e62327 Mon Sep 17 00:00:00 2001 From: Mikal Stordal Date: Fri, 25 Oct 2024 10:09:16 +0200 Subject: [PATCH] fix: don't skip valid metadata update events - Fixed the inverse boolean logic that made it so the plugin would skip all valid metadata update events for enabled providers, and process all invalid metadata update events for disabled providers. --- Shokofin/SignalR/SignalRConnectionManager.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Shokofin/SignalR/SignalRConnectionManager.cs b/Shokofin/SignalR/SignalRConnectionManager.cs index e09f154c..7919dcb8 100644 --- a/Shokofin/SignalR/SignalRConnectionManager.cs +++ b/Shokofin/SignalR/SignalRConnectionManager.cs @@ -277,9 +277,9 @@ private void OnFileDeleted(IFileEventArgs eventArgs) private void OnInfoUpdated(IMetadataUpdatedEventArgs eventArgs) { - if (Plugin.Instance.Configuration.SignalR_EventSources.Contains(eventArgs.ProviderName)) { + if (!Plugin.Instance.Configuration.SignalR_EventSources.Contains(eventArgs.ProviderName)) { Logger.LogTrace( - "{ProviderName} {MetadataType} {ProviderId} ({ProviderParentId}) skipped event with {UpdateReason}; provider not is not enabled in the plugin settings. (Episode={EpisodeId},Series={SeriesId},Group={GroupId})", + "{ProviderName} {MetadataType} {ProviderId} ({ProviderParentId}) skipped event with {UpdateReason}; provider is not enabled in the plugin settings. (Episode={EpisodeId},Series={SeriesId},Group={GroupId})", eventArgs.ProviderName, eventArgs.Kind, eventArgs.ProviderId,