shemanaev / jellyfin-plugin-media-cleaner

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

Asking help for explanation of options #23

Closed xiNeRoar closed 5 months ago

xiNeRoar commented 12 months ago

Describe the feature you'd like added

image I am having difficulties understanding the behaviour of the options....for example;

  1. Keep while not played by All users All users have fully played the item

Does that mean keeping a single episode or keeping an entire series? Does that mean keep the "episode/series" when no one is watching it? If so, what does that mean by the description below: "All users have entirely played the item?

  1. How will the option "delete after played" interact with "keep while not played by"? If I have "deleted after played" set to "episode" and "keep while not played by" assigned to "any user," if I have one user played a single episode, will this plugin delete that specific episode? Or will it delete the whole series after the date I specify?

  2. Under "Keep while not played by" > "Any user" Does the description "At least one user have fully played item" mean a single episode or entire series? What does "item" refer to??

Sorry, I am so confused about the description and couldn't understand what the behaviour will be... I couldn't find any documentation that explains each option in detail, that's why I have to open an issue :(

Additional context

No response

shemanaev commented 10 months ago
  1. This option's granularity depends on previous option "Delete after played". For example, with settings like on screenshot episodes watched by all users will be deleted (like, when show has 10 episodes, and only episode 5 was played by all users, then only episode 5 will be deleted).
  2. Delete specific episode. These options directly connected.
  3. Again, "item" is referring to option "Delete after played". It controls what will be an indivisible part. Like when it set to "season", all episodes of season has to be fully played, and so on.

Hope it makes clearer what is going on :)

J-o-h-n-M commented 8 months ago

When does media get deleted with setting 0? I would expect immediately. But that does not seem the case. Does it check every X hour or something?

shemanaev commented 8 months ago

It works via scheduled tasks. You can find «Played media cleanup» task in dashboard and customise its period. By default, I think, it runs every 24 hours.

19 дек. 2023 г., в 12:05, John @.***> написал(а):

When does media get deleted with setting 0? I would expect immediately. But that does not seem the case. Does it check every X hour or something?

— Reply to this email directly, view it on GitHub https://github.com/shemanaev/jellyfin-plugin-media-cleaner/issues/23#issuecomment-1862373524, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAICN2MCYI2LCZEAPW6EYYTYKFKEBAVCNFSM6AAAAAA4SOTXW2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRSGM3TGNJSGQ. You are receiving this because you commented.

xiNeRoar commented 5 months ago

I guess I am stupid on this :(, may I ask in this way; is it achievable that;

  1. if no one has played any episode in the series for 30 days, delete the whole series
  2. if someone has played any episode in the series, keep the whole series for 30 days and extend it upon each play
  3. if someone has played half of the episode in the series and left the rest of it unwatched, the whole series will be kept but not just the watched episode
shemanaev commented 5 months ago

No worries. This should be achievable with settings like below изображение

xiNeRoar commented 5 months ago

Thanks for your help again 😃

xiNeRoar commented 3 weeks ago

No worries. This should be achievable with settings like below изображение

Sorry i have to reopen the issue because i found it not working and finally figure out why. It will filter out all tasks when included users that have no access to the selected library. Can this be further improve or fix?

Because when there are lots of user and each of them have different access right, it is nearly impossible to match the correct access right of each user to the library independently