Skip to content

Commit

Permalink
fix: also check if the provider is enabled for seasons/series
Browse files Browse the repository at this point in the history
and not just videos
  • Loading branch information
revam committed Nov 5, 2024
1 parent a41d928 commit eed069f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Shokofin/Sync/UserDataSyncManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ public void OnItemAddedOrUpdated(object? sender, ItemChangeEventArgs e)
break;
}
case Season season: {
if (!Lookup.TryGetSeriesIdFor(season, out var seriesId))
if (!(Lookup.IsEnabledForItem(season) && Lookup.TryGetSeriesIdFor(season, out var seriesId)))
return;

foreach (var userConfig in Plugin.Instance.Configuration.UserList) {
Expand All @@ -445,7 +445,7 @@ public void OnItemAddedOrUpdated(object? sender, ItemChangeEventArgs e)
break;
}
case Series series: {
if (!Lookup.TryGetSeriesIdFor(series, out var seriesId))
if (!(Lookup.IsEnabledForItem(series) && Lookup.TryGetSeriesIdFor(series, out var seriesId)))
return;

foreach (var userConfig in Plugin.Instance.Configuration.UserList) {
Expand Down

0 comments on commit eed069f

Please sign in to comment.