Skip to content

Commit

Permalink
fix: don't skip valid metadata update events
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
revam committed Oct 25, 2024
1 parent e404314 commit d06fbe8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Shokofin/SignalR/SignalRConnectionManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d06fbe8

Please sign in to comment.