From 1803f9f7087a7a3dbf4f496c421bba1de8994123 Mon Sep 17 00:00:00 2001 From: Shadowghost Date: Mon, 3 Oct 2022 13:31:01 +0200 Subject: [PATCH] Prevent setting local item as unwatched on sync --- Trakt/ScheduledTasks/SyncLibraryTask.cs | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/Trakt/ScheduledTasks/SyncLibraryTask.cs b/Trakt/ScheduledTasks/SyncLibraryTask.cs index aabc464..073d8d4 100644 --- a/Trakt/ScheduledTasks/SyncLibraryTask.cs +++ b/Trakt/ScheduledTasks/SyncLibraryTask.cs @@ -216,24 +216,9 @@ public class SyncLibraryTask : IScheduledTask // If the movie has been played locally and is unplayed on trakt.tv then add it to the list if (userData.Played) { - if (movieWatched == null) + if (movieWatched == null && traktUser.PostWatchedHistory) { - if (traktUser.PostWatchedHistory) - { - playedMovies.Add(libraryMovie); - } - - if (!traktUser.SkipUnwatchedImportFromTrakt) - { - userData.Played = false; - - _userDataManager.SaveUserData( - user.Id, - libraryMovie, - userData, - UserDataSaveReason.Import, - cancellationToken); - } + playedMovies.Add(libraryMovie); } } else