Skip to content

Commit

Permalink
fix: check if enabled during user data scan
Browse files Browse the repository at this point in the history
before looking up ids
  • Loading branch information
revam committed Oct 9, 2024
1 parent 123016f commit f11bef4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Shokofin/Sync/UserDataSyncManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ public async Task ScanAndSync(SyncDirection direction, IProgress<double> progres
foreach (var video in videos) {
cancellationToken.ThrowIfCancellationRequested();

if (!(Lookup.TryGetFileIdFor(video, out var fileId) && Lookup.TryGetEpisodeIdFor(video, out var episodeId)))
if (!(Lookup.IsEnabledForItem(video) && Lookup.TryGetFileIdFor(video, out var fileId) && Lookup.TryGetEpisodeIdFor(video, out var episodeId)))
continue;

foreach (var userConfig in enabledUsers) {
Expand Down

0 comments on commit f11bef4

Please sign in to comment.