shemanaev / jellyfin-plugin-media-cleaner

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

Can you add an option not to delete the unfinished TV series? #5

Open shanyan-wcx opened 2 years ago

shanyan-wcx commented 2 years ago

For example, a TV series has a total of 10 episodes, but only 4 episodes have been shown. When I finished watching these 4 episodes, it was deleted. I hope to add an option that the unfinished TV series will not be deleted.

shemanaev commented 2 years ago

I would love this too, but there is not flag "season finished" and only reliable way to get missing episodes I found is tied to TVDB provider, which is no go for me. I will look into it more, but for now only can recommend to increase keep time to cover time for new episodes airing.

shanyan-wcx commented 2 years ago

There is a status tag in jellyfin's metadata. Can't it be obtained? image

shemanaev commented 2 years ago

It might work, but has limitations too. Metadata can be updated only once 30/60/90 days per library settings. So it will create cleanup lag upto 30 days minimum. Will it be better than just increase keep days?

shanyan-wcx commented 2 years ago

Metadata will also be refreshed whenever new episodes are added.

shanyan-wcx commented 2 years ago

If you want to be faster, it seems that you can only set a scheduled task and search the metadata provider every day

shemanaev commented 2 years ago

I actually YOLO'd and published new version so you can experiment. There is new option "Entire series has ended" for series that will wait for metadata has changed to "Ended". Would glad to hear feedback.