diff --git a/Shoko.Server/Scheduling/Jobs/AniDB/UpdateMyListFileStatusJob.cs b/Shoko.Server/Scheduling/Jobs/AniDB/UpdateMyListFileStatusJob.cs index cc1ba015d..40bcf31fd 100644 --- a/Shoko.Server/Scheduling/Jobs/AniDB/UpdateMyListFileStatusJob.cs +++ b/Shoko.Server/Scheduling/Jobs/AniDB/UpdateMyListFileStatusJob.cs @@ -27,7 +27,7 @@ public class UpdateMyListFileStatusJob : BaseJob private string FullFileName { get; set; } public string Hash { get; set; } - public bool Watched { get; set; } + public bool? Watched { get; set; } public bool UpdateSeriesStats { get; set; } public DateTime? WatchedDate { get; set; } @@ -69,8 +69,7 @@ public override async Task Process() r.State = settings.AniDb.MyList_StorageState.GetMyList_State(); r.Hash = vid.Hash; r.Size = vid.FileSize; - if (!Watched || WatchedDate == null) return; - r.IsWatched = true; + r.IsWatched = Watched; r.WatchedDate = WatchedDate; } ); @@ -92,8 +91,7 @@ public override async Task Process() r.AnimeID = episode.AnimeID; r.EpisodeNumber = episode.EpisodeNumber; r.EpisodeType = (EpisodeType)episode.EpisodeType; - if (!Watched || WatchedDate == null) return; - r.IsWatched = true; + r.IsWatched = Watched; r.WatchedDate = WatchedDate; } ); diff --git a/Shoko.Server/Services/WatchedStatusService.cs b/Shoko.Server/Services/WatchedStatusService.cs index 31fe2f6ae..7a06516a0 100644 --- a/Shoko.Server/Services/WatchedStatusService.cs +++ b/Shoko.Server/Services/WatchedStatusService.cs @@ -124,6 +124,7 @@ await scheduler.StartJob( c.Hash = vl.Hash; c.Watched = watched; c.UpdateSeriesStats = false; + c.Watched = watched; c.WatchedDate = watchedDate?.ToUniversalTime(); } );