Merge pull request #169 from Shadowghost/fixes

Prevent setting local item as unwatched on sync
This commit is contained in:
Cody Robibero 2022-10-14 06:13:52 -06:00 committed by GitHub
commit 1ed81ff257
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -216,25 +216,10 @@ 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 (traktUser.PostWatchedHistory)
if (movieWatched == null && traktUser.PostWatchedHistory)
{
playedMovies.Add(libraryMovie);
}
if (!traktUser.SkipUnwatchedImportFromTrakt)
{
userData.Played = false;
_userDataManager.SaveUserData(
user.Id,
libraryMovie,
userData,
UserDataSaveReason.Import,
cancellationToken);
}
}
}
else
{