shemanaev / jellyfin-plugin-media-cleaner

Automatically delete played media files after specified amount of time.
MIT License
71 stars 1 forks source link

Question - Redownloaded media #8

Closed aleksasiriski closed 1 year ago

aleksasiriski commented 1 year ago

So, some media is watched and is deleted after X days, what happens when that same media gets downloaded again?

If it instantly gets deleted again I think that's wrong. I'll probably later look at the code and add some PRs but my question is now: Does it use some database that it clears after successfuly deleting something?

shemanaev commented 1 year ago

If it instantly gets deleted again I think that's wrong.

Correct, it'll be deleted on next scheduled task run.

Does it use some database that it clears after successfuly deleting something?

No, plugin uses Played and LastPlayedDate fields Jellyfin is in charge of.

I'll probably later look at the code and add some PRs

I don't mind the option to reset watch state upon deletion. So when media downloaded again it'll be marked as unwatched, which is kinda makes sense.