elfhosted / plex_debrid

Plex torrent streaming through Debrid Services
27 stars 7 forks source link

Parameterized watchlist loop interval rather than hardcoded 30 minutes #2

Closed sirstudly closed 4 months ago

sirstudly commented 4 months ago

Allows the watchlist download interval to be configured in the settings.json. Default value is 30 minutes (1800 seconds).

This is the interval in which an attempt is made to find anything that is in the watchlist but not yet in the library, not to be confused with the interval in which the watchlist is checked for new items.

funkypenguin commented 4 months ago

Wouldn't the "find-new-items-from-watchlist" interval depend on the "update-watchlist" interval anyway? Or is it possible (before this PR), that I add an item to my watchlist, PD detects this, but takes up to 30 min before it starts searching for it?

sirstudly commented 4 months ago

Unless PD is currently doing some processing, then I wouldn't expect so. The "find-new-items-from-watchlist" timeout is currently hard-coded to 5 seconds. I was thinking of parameterizing that as well but I didn't really see a need to ever change it since it's a very fast operation.