ManiMatter / decluttarr

Watches radarr, sonarr, lidarr, readarr and whisparr download queues and removes downloads if they become stalled or no longer needed.
GNU General Public License v3.0
99 stars 15 forks source link

[Bugfix] Actually remove failed imports #117

Closed hllywluis closed 3 weeks ago

hllywluis commented 3 weeks ago

While trying to use decluttarr with my Lidarr setup, I noticed that there were some imports that were failing but were never actually removed from the queue. I took a look at the logs and the trackedDownloadState of these items was importFailed instead of importPending which is expected.

This PR adds another condition to the logic that checks for importFailed as well and removes the affected downloads.

I tried to screenshot this but it's a little difficult to show without diving into the debug logs!

Screenshot 2024-06-03 at 4 40 58 PM
ManiMatter commented 3 weeks ago

thanks for the contribution