Skip to content

Commit

Permalink
Check creation date for unwatched items
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolaSmaniotto authored and shemanaev committed Jul 11, 2024
1 parent 6919099 commit 3362473
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MediaCleaner/ItemsAdapter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public IEnumerable<ExpiredItem> GetNotPlayedItems(
var userData = _userDataManager.GetUserData(user, item);

var isWatching = userData.PlaybackPositionTicks != 0;
if (userData.Played || isWatching)
if ((userData.Played && userData.LastPlayedDate >= item.DateCreated) || isWatching)
{
_logger.LogTrace("\"{Name}\" ({Id}) was played by {Username}", item.Name, item.Id, user.Username);
continue;
Expand Down

0 comments on commit 3362473

Please sign in to comment.