Closed Glynax closed 1 year ago
From a notifiarr perspective i'm not sure about this one. However there is another tool that already watches the queue and is capable of sending webhooks. Maybe if it had the option to send a status webhook for anything in queue that is not 100% then this could be done pretty easily. It would require unpackerr though as it would be leveraging what it does. Your thoughts @davidnewhall
So I've had some time to look into this and come api with an idea. I know nit thought unpackerr may be a good fit, but I'm not sure that's a good place of this. I think it should be integrated like stuck items, and there's a few reasons for that.
Right now, stuck items polls the queue every 5 minutes. It's a single timer for all 4 apps; it's only started if at least one app has stuck items on. If there are any stuck items, then they are all sent. Every 5 minutes until there aren't any.
My proposal is to create a new module that replaces stuck items and adds this new feature. Similar to the plex sessions tracker, this new module will poll each starr app at an internal. Plex is currently hard coded to 1m, but we can make this new starr module adjustable between 1m and 10m. When the queue is pulled from an app, it will be checked for incomplete items and stuck items. Those specific items will be saved in memory.
This setup allows us to control things a bit better. As-is the stuck items are re-sent every 5 minutes, but with this configuration we can choose which ones to send (avoid repeats), when to send them (only every hour, or only once). We can also have settings for the incomplete items tracker: send only requested (literal discord requests), send all, send once, send every N minutes, etc.
This will require some significant investment on the website side of things as well.
So all of the above crap is done, minus the part that sends downloading items. Just need to talk to nit a bit more about what it should look like, but it's easy to put in now.
This feature is nearly complete. We're in testing mode now, and the website needs a bit more code to push the notifications through.
Client now supports this. Just needs site work and an eventual new stable client release
Done on nightly, needs some tuning with dev and then will be live
I'm not sure if it makes more sense to poll the relevant arr for download status/% or the downloader itself but one of my friends just asked if there's a way to see how much longer till his requested movie was downloaded and I realized there isn't currently a way to check that.