From f11bef4145bce03c108a656bc491aa69198e5924 Mon Sep 17 00:00:00 2001 From: Mikal Stordal Date: Wed, 9 Oct 2024 06:24:54 +0200 Subject: [PATCH] fix: check if enabled during user data scan before looking up ids --- Shokofin/Sync/UserDataSyncManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shokofin/Sync/UserDataSyncManager.cs b/Shokofin/Sync/UserDataSyncManager.cs index d14e8c52..9ef7a1f6 100644 --- a/Shokofin/Sync/UserDataSyncManager.cs +++ b/Shokofin/Sync/UserDataSyncManager.cs @@ -392,7 +392,7 @@ public async Task ScanAndSync(SyncDirection direction, IProgress 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) {