9 hours ago
I'm assuming when you rematch it should clear out the old match data not leave it hanging around but it seems to be still active.
The Bodyguard (1992) (tt0103855) for some reason matched to a Russian movie called Telokhranite (1991) (tt0197013) which has an aka of The Bodyguard so when you update the watched status it returns 5 records and sets 3 of them to watched, BUT, the first two records, the old data, is untouched and so Played = false and it returns the first record in the dataset and so it seems it's unwatched when it's actually watched
Should likely update UserDataManager to remove the now unassociated userdata items in SaveUserData.
The Bodyguard (1992) (tt0103855) for some reason matched to a Russian movie called Telokhranite (1991) (tt0197013) which has an aka of The Bodyguard so when you update the watched status it returns 5 records and sets 3 of them to watched, BUT, the first two records, the old data, is untouched and so Played = false and it returns the first record in the dataset and so it seems it's unwatched when it's actually watched
Should likely update UserDataManager to remove the now unassociated userdata items in SaveUserData.
Quote:private static void RemoveUserDataNotAssociatedViaKey(JellyfinDbContext dbContext, User user, BaseItem item, List<string> keys)
{
var notAssociated = dbContext.UserData
.Where(f => f.ItemId == item.Id && f.UserId == user.Id && !keys.Contains(f.CustomDataKey));
if (notAssociated.Any())
{
dbContext.UserData.RemoveRange(notAssociated);
}
}

