Kodi Community Forum
Win Delete after time with watched status - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+--- Thread: Win Delete after time with watched status (/showthread.php?tid=135220)



Delete after time with watched status - thatoneguy99 - 2012-07-02

This might be a dumb question but I think it would be perfect in my situation. I searched but didnt find anything like what I am talking about.
What I would like to do is automatically delete Movies or TV shows that have not been watched in "x" amount of time. Does MySQL store the date it was watched, along with watched/unwatched status. I think it would be pretty cool, and useful for hard drive space, to have a program search for and delete Movies/TV shows that haven't been watched in 6 months (or whatever amount of time that you set) Is this possible? Any information or guidance would be helpful. Oh and to clarify I dont want to delete on watched status because I might want to watch that again. If its been a while since I watched it then chances are that I am not going to watch it again. Thank you.


RE: Delete after time with watched status - thatoneguy99 - 2012-07-13

Bump. Nothing? At least if someone could tell me it's not possible I'll let it go.


RE: Delete after time with watched status - mgithens - 2012-07-17

http://forum.xbmc.org/showthread.php?tid=55794

I see there is a "lastPlayed" entry in the files table... there's a start!!


RE: Delete after time with watched status - mkortstiege - 2012-07-17

FYI, dateAdded and lastPlayed are available in the video info tag which is available for addons. You just need to do something with it Smile


RE: Delete after time with watched status - thatoneguy99 - 2012-07-18

I know nothing about where to begin. I like learning new things though so, we will see. Does anyone have an idea as to where to start? I am glad that there is a lastPlayed in there to give me that information. Now i just need to magically create something that pulls that data and checks for x amount of days since the lastPlayed data and go from there. Should be a piece of cake right? HAHA
Is this even interesting to anyone?