Plex-Cleaner icon indicating copy to clipboard operation
Plex-Cleaner copied to clipboard

Some episodes that I watched days/week ago are "Days Since Last Viewed: 0"

Open jaytonic opened this issue 9 years ago • 6 comments

Hi,

I recently installed your script on my NAS and I'm pretty happy about it. I've one issue still:

Some shows that I've already watched(By example here I've two episode of the same tv show, one I watched last week, one I watched this week), are indicasted as following:

--------- Section 2: S?ries TV ----------------------------------- XXXX | Viewed: 1 | Days Since Last Viewed: 0 | On Deck: False [Keeping] /media/RAID/public/Downloads/Series/YYYY/Season 10/XXXX.mkv

VVVV | Viewed: 1 | Days Since Last Viewed: 0 | On Deck: False [Keeping] /media/RAID/public/Downloads/Series/YYYY/Season 10/VVVV.mkv

They are indicasted as having been viewed once, but there is no days since last viewed. Since I've configured to delete everything that is older than 1 day, they are never deleted. Any idea what could going wrong?

Or what I can give you to help the debug?

jaytonic avatar Jan 10 '17 16:01 jaytonic

I've gone to the XML of the Plex media, In the case of the oldest episode, I've this:

viewCount="1" lastViewedAt="1483440860"

If I convert this correctly, this means "GMT: Tue, 03 Jan 2017 10:54:20 GMT". Since Plex and the script is on the same computer, they have at least the same timezone and hour

jaytonic avatar Jan 10 '17 16:01 jaytonic

Do you have the script check for home users? If multiple users are checked for a show then any user that hasn't seen the show will return a 0.

ngovil21 avatar Jan 15 '17 01:01 ngovil21

I've only one user on my plex server

jaytonic avatar Jan 15 '17 06:01 jaytonic

If you are still having this issue, I'll need to see the log and your config file. You can email them to me at [email protected] You can remove the token and personal info, but seeing the filenames would be useful.

ngovil21 avatar Jan 28 '17 01:01 ngovil21

@ngovil21 1 year later, I sent you the email ;)

jaytonic avatar Apr 28 '18 19:04 jaytonic

I reviewed this 2 years later, but your minDays was set to 21, so it would delete 21 days after watching. Hope you figured it by now.

ngovil21 avatar Apr 24 '20 16:04 ngovil21