mirror of
https://github.com/jellyfin/jellyfin-plugin-trakt.git
synced 2024-11-23 05:40:13 +00:00
Merge pull request #169 from Shadowghost/fixes
Prevent setting local item as unwatched on sync
This commit is contained in:
commit
1ed81ff257
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user