From c731d15216d9baec8d6fffa8ce3ad365dce05efa Mon Sep 17 00:00:00 2001 From: Admin9705 <9705@duck.com> Date: Sat, 14 Jun 2025 21:38:42 -0400 Subject: [PATCH] Add new settings for handling removed downloads and failed imports in Swaparr - Introduced UI options for users to enable automatic re-search of removed downloads and detection of failed imports. - Implemented backend logic to check for failed imports based on common error patterns and trigger searches for alternatives. - Updated the download deletion process to optionally trigger searches after removals based on user settings. - Enhanced logging for failed import detection and search triggering to improve monitoring and user feedback. --- frontend/static/js/settings_forms.js | 30 +++++ src/primary/apps/swaparr/handler.py | 195 ++++++++++++++++++++++++++- 2 files changed, 218 insertions(+), 7 deletions(-) diff --git a/frontend/static/js/settings_forms.js b/frontend/static/js/settings_forms.js index 60085bec..b514d72e 100644 --- a/frontend/static/js/settings_forms.js +++ b/frontend/static/js/settings_forms.js @@ -1408,6 +1408,34 @@ const SettingsForms = {

Also remove downloads from the download client (recommended: enabled)

+
+ + +

When a download is removed, blocklist it in the *arr app and automatically search for alternatives (retry once)

+
+ +
+ + +

Automatically detect failed imports, blocklist them, and search for alternatives

+
+