Commit Graph

216 Commits

Author SHA1 Message Date
Admin9705
66c8954dac Enhance notification settings handling in forms
- Updated input retrieval logic to check both the main container and the notifications container for notification settings.
- Introduced a helper function to streamline the process of getting input values, improving code clarity and maintainability.
- Ensured that apprise URLs are processed from the correct container, enhancing the robustness of the settings form functionality.
2025-06-26 08:33:01 -04:00
Admin9705
613f969b05 Refactor settings form structure and selectors for improved clarity
- Updated HTML structure by removing the unnecessary wrapper div for the settings form.
- Changed JavaScript selectors to target the new structure, ensuring functionality remains intact.
- Removed unused CSS properties related to the settings form for a cleaner layout.
2025-06-26 08:26:35 -04:00
Admin9705
da0c7ad917 Enhance notifications feature and update port configuration
- Updated the web server to prioritize HUNTARR_PORT over PORT for better consistency in configuration.
- Added a new notifications section in the frontend, including UI elements for managing notification settings.
- Implemented functionality to initialize notifications and handle user interactions for enabling/disabling notifications.
- Enhanced the settings form to include options for notification levels and Apprise URLs, along with a test notification feature.
2025-06-21 20:58:34 -04:00
Admin9705
253fb0c7ed Refactor base URL handling and remove auto-detection methods
- Simplified base URL input in settings_forms.js by removing the auto-detect button and related status messages.
- Updated help text to clarify base URL configuration using the BASE_URL environment variable.
- Removed auto-detection functions from settings_manager.py and related API routes in common.py to streamline initialization.
- Adjusted web_server.py to ensure proper handling of APPLICATION_ROOT when no base URL is set.
- Enhanced logging for base URL configuration processes.
2025-06-19 18:37:21 -04:00
Admin9705
4a2f5a7c0c Update styling for Sonarr state status display in settings_forms.js
- Adjusted padding and background colors for improved visual consistency and user experience in the state status display.
- Enhanced border styling to better align with the overall design aesthetics.
2025-06-19 14:06:07 -04:00
Admin9705
ddbbd56084 Refactor instance name retrieval and state management in JavaScript and Python
- Enhanced instance name detection logic in new-main.js and settings_forms.js to ensure consistency across the application.
- Updated state management to rely solely on server-provided reset times, removing fallback calculations.
- Improved logging for state loading and error handling to provide clearer context in console outputs.
- Adjusted Python backend to ensure accurate timezone conversion for reset times and improved error handling for missing lock information.
2025-06-19 14:02:18 -04:00
Admin9705
37a0b78268 Update version to 8.1.1 and enhance state management with per-instance functionality
- Incremented version number in version.txt.
- Refactored JavaScript to improve state management display and reset functionality for individual instances.
- Added event listeners for per-instance reset buttons in settings_forms.js.
- Enhanced Python backend to support per-instance state management, including initialization, expiration checks, and reset capabilities.
- Updated database schema to include stateful_instance_locks for managing instance-specific state.
2025-06-19 13:35:34 -04:00
Admin9705
c33f7b74a0 Update help text for hourly API cap settings across multiple applications
- Revised the help text for Sonarr, Radarr, Lidarr, Readarr, Whisparr, and Eros to clarify the purpose of the hourly API cap and provide safety recommendations.
- Emphasized the importance of keeping API requests lower to prevent being banned by indexers, with a suggested range of 20-50 requests for safety.
2025-06-19 10:33:56 -04:00
Admin9705
956b29ecca Update hourly API cap limits for multiple applications
- Increased the maximum allowed API requests per hour from 250 to 400 for Sonarr, Radarr, Lidarr, Readarr, Whisparr, and Eros.
- Updated corresponding help text to reflect the new maximum and provide recommendations for usage.
- Adjusted settings validation in the backend to enforce the new limit.
2025-06-19 10:21:45 -04:00
Admin9705
a8622915b9 Implement temporary suppression of change detection during settings form generation
- Added functionality to suppress change detection while generating forms for Sonarr, Radarr, Lidarr, Readarr, Whisparr, Eros, and other settings.
- Restored the original change detection state after a brief delay to ensure forms render correctly, improving user experience during form interactions.
2025-06-19 09:03:59 -04:00
Admin9705
5a05937ce3 Enhance connection status checks in settings UI
- Implemented validation to ensure both URL and API key have sufficient length before checking connection status, improving user feedback.
- Added status messages to guide users on missing URL or API key inputs.
- Increased timeout for connection checks to ensure the form is fully rendered before validation.
- Introduced a backup timeout for connection tests to handle potential request delays, enhancing user experience during API interactions.
2025-06-19 08:57:26 -04:00
Admin9705
92d8418a7e Update episodes mode warning messages and button text in settings UI
- Enhanced warning messages for episodes mode in both missing content and upgrade settings to clarify that it does not support tagging.
- Updated button text to reflect the specific application name based on the app type, improving user understanding of the instance being added.
- Ensured consistency in messaging across the settings interface for better user guidance.
2025-06-19 08:51:09 -04:00
Admin9705
e09429c3f5 Update warning messages for episodes mode in settings UI
- Simplified the warning messages for episodes mode in both missing content and upgrade settings.
- Removed excessive details about API calls and tagging limitations, focusing on the recommendation for using Season Packs.
- Enhanced clarity while maintaining essential information for user guidance.
2025-06-19 08:35:57 -04:00
Admin9705
14d8033eb2 Refactor display settings in the UI
- Removed the old display settings for community resources and Huntarr support.
- Introduced a new grouped section for display settings with improved styling and organization.
- Added toggle options for displaying resources and Huntarr support, enhancing user configurability.
2025-06-19 08:30:44 -04:00
Admin9705
0a4a9bce04 Enhance state management capabilities for multiple applications
- Expanded the UI to support instance-specific state management for Sonarr, Radarr, Lidarr, and Readarr, allowing users to configure state management modes and reset intervals.
- Implemented dynamic loading of state information for each instance, including processed item counts and next reset times.
- Updated backend logic to handle per-instance settings for state management, ensuring accurate processing based on user configurations.
- Introduced new API endpoint to retrieve state management summaries for specific app instances, improving data accessibility.
2025-06-19 08:25:56 -04:00
Admin9705
1c71b29277 Enhance state management features across multiple applications
- Updated UI to allow instance-specific state management settings for Sonarr, Radarr, Lidarr, and Readarr, enabling users to configure state management mode and reset intervals.
- Implemented functions to dynamically load and display state information, including reset times and item counts for each instance.
- Modified default configurations for all relevant applications to set state management mode to 'custom' and default hours to 168.
- Improved event listeners to handle changes in state management settings and reset functionality effectively.
2025-06-19 08:14:47 -04:00
Admin9705
44589373f4 Add state management features for Sonarr instances
- Introduced instance-specific state management settings in the UI, allowing users to configure state management mode and reset hours.
- Implemented functions to load and display state information for each Sonarr instance.
- Updated default configuration for Sonarr to include state management options.
- Enhanced event listeners to handle changes in state management settings dynamically.
2025-06-19 07:36:43 -04:00
Admin9705
5bdd463b24 Add hunt missing and upgrade modes to Sonarr settings UI
- Introduced dropdowns for selecting missing search mode and upgrade mode in the Sonarr settings.
- Default values set to 'seasons_packs' for both modes.
- Added event listeners to display warnings for excessive API calls when 'episodes' mode is selected.
- Updated background processing to utilize per-instance mode settings.
- Refactored default configuration to include new mode settings.
2025-06-18 04:01:34 -04:00
Admin9705
57deb39cd6 Implement automatic subpath detection for reverse proxy support - Auto-detect base URL from HTTP headers during setup (X-Forwarded-Path, X-Script-Name, etc.) - Add manual detection API endpoint /api/settings/detect-base-url - Add Auto-Detect button in Settings UI for manual triggering - Support multiple reverse proxy configurations (nginx, Traefik, Apache) - No environment variables required - works automatically for new installations - Resolves GitHub issue #620 without requiring BASE_URL environment variable 2025-06-17 23:00:30 -04:00
Admin9705
51fff167de Fix GitHub issue #624: Readarr Missing/Upgrade Search settings not persisting - Updated form data collection logic to include hunt_missing_books and hunt_upgrade_books field names 2025-06-17 21:34:28 -04:00
Admin9705
2be445ef5a Enhance connection status management and logging in apps and settings forms
- Implemented connection status checking for supported apps, ensuring proper setup for instance management.
- Improved logging for change detection suppression and form changes, providing clearer context for debugging.
- Added delays for resetting suppression flags after connection tests to ensure all changes are processed effectively.
2025-06-17 20:51:48 -04:00
Admin9705
2350f66255 Enhance change detection suppression in apps and settings forms
- Updated the change detection logic to account for an additional suppression flag, improving user experience during status updates and test connections.
- Added checks for status elements by ID pattern to ensure accurate detection of test-related changes.
- Implemented a reset mechanism for suppression flags after status updates, enhancing the responsiveness of the UI.
2025-06-17 20:45:06 -04:00
Admin9705
986f599887 Refactor settings forms to streamline missing and upgrade item inputs
- Simplified the settings forms by removing quality profile dropdowns for missing and upgrade item searches, focusing on numeric input fields only.
- Updated the connection handling logic to replace auto-fetching of quality profiles with a direct connection status check, enhancing user experience during configuration.
- Improved code maintainability by consolidating connection status checks across multiple applications.
2025-06-17 20:36:08 -04:00
Admin9705
8646dcc314 Enhance settings forms with quality profile selection and auto-fetching functionality
- Updated the settings forms to include dropdowns for selecting quality profiles during missing and upgrade searches, improving user experience.
- Implemented auto-detection for new instances, allowing real-time fetching of quality profiles based on URL and API key inputs with a delay to prevent excessive requests.
- Ensured initial status checks for new instances to streamline the setup process.
2025-06-16 20:44:05 -04:00
Admin9705
84a424fd92 Add quality profile management for Eros, Lidarr, Readarr, Sonarr, and Whisparr APIs
- Implemented new API endpoints to fetch quality profiles from Eros, Lidarr, Readarr, Sonarr, and Whisparr, enhancing integration capabilities.
- Updated frontend forms to include dropdowns for selecting quality profiles during missing and upgrade searches, improving user experience.
- Enhanced backend logic to handle quality profile retrieval, ensuring robust communication with respective services.
- Streamlined error handling and logging for quality profile fetching processes across all applications.
2025-06-16 20:39:30 -04:00
Admin9705
3a47fe7d4e Refactor connection handling for multiple apps and enhance UI feedback
- Replaced the test connection button with a connection status indicator for each instance across multiple applications (Sonarr, Lidarr, Readarr, Whisparr, Eros).
- Added data attributes to URL and API key inputs for better instance tracking.
- Streamlined the logic for auto-fetching quality profiles and connection status updates, improving user experience during configuration.
- Updated the UI to reflect connection status dynamically, providing immediate feedback to users.
2025-06-16 20:19:55 -04:00
Admin9705
066f90f713 Improve status messaging for Radarr API key and URL validation
- Enhanced user feedback by providing specific status messages for missing URL and API key inputs.
- Updated the UI to display appropriate messages and colors based on the completeness of the fields, improving overall user experience during configuration.
2025-06-16 20:06:26 -04:00
Admin9705
fe6a4d6235 Refactor Radarr connection handling and improve UI feedback
- Removed the test connection button and replaced it with a connection status indicator for each instance, enhancing user experience.
- Implemented real-time connection status updates based on URL and API key inputs, providing immediate feedback during configuration.
- Streamlined the connection testing logic to improve code maintainability and reduce redundancy.
- Updated the UI to reflect connection success or failure with appropriate messaging and styling.
2025-06-16 20:00:54 -04:00
Admin9705
029c90fdbc Enhance Radarr integration with quality profile management
- Added functionality to fetch and populate quality profiles from the Radarr API, improving user experience when configuring instances.
- Updated the frontend to include dropdowns for selecting quality profiles during missing and upgrade searches.
- Implemented auto-fetching of quality profiles based on URL and API key inputs, streamlining the setup process for users.
- Enhanced backend with a new API endpoint to retrieve quality profiles, ensuring robust communication with the Radarr service.
2025-06-16 19:37:22 -04:00
Admin9705
37f63cc91f Remove redundant additional options from settings forms for Lidarr and Eros
- Eliminated the settings group for additional options in both Lidarr and Eros sections to streamline the user interface.
- Consolidated relevant settings into existing groups for better organization and clarity.
- Updated the settings management logic to include skip future releases for Lidarr.
2025-06-15 12:08:50 -04:00
Admin9705
fce76c9a10 Refactor settings forms to streamline additional options layout
- Removed redundant settings group for additional options in both Lidarr and Readarr sections.
- Consolidated the monitored only and skip future releases options into a single settings group for improved organization.
- Updated the HTML structure to enhance readability and maintainability of the settings forms.
2025-06-15 12:00:51 -04:00
Admin9705
f5268aff68 Refactor timezone selection in settings to use a dropdown menu
- Replaced the text input field for timezone selection with a dropdown menu for improved user experience.
- Added a custom option for users to select their current timezone if it is not in the predefined list.
- Enhanced the help text to clarify that changes are applied upon saving settings.
- Maintained the existing timezone options while ensuring the current selection is highlighted.
2025-06-15 11:36:13 -04:00
Admin9705
f0e0598def Implement timezone validation and user input enhancements
- Replaced the timezone selection dropdown with a text input field that allows users to enter or select from a list of valid timezones.
- Added validation functions to ensure the entered timezone is valid, with fallback to UTC for invalid entries.
- Updated the settings manager to handle timezone changes more robustly, including logging warnings for invalid timezones.
- Enhanced the web server to validate timezone changes before saving settings, ensuring users are notified of any adjustments made.
- Improved utility functions for timezone handling to ensure safe retrieval and validation of timezone data.
2025-06-15 11:26:32 -04:00
Admin9705
63270c7e20 Enhance timezone selection in settings
- Added multiple new timezone options for various regions including North America, South America, Europe, Africa, Asia, and Australia.
- Updated the settings_forms.js file to reflect these changes, ensuring users can select their appropriate timezone for accurate time display.
- Version updated in HTML templates to reflect the latest changes in the settings script.
2025-06-15 11:19:15 -04:00
Admin9705
c731d15216 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.
2025-06-14 21:38:42 -04:00
Admin9705
49f7fde6e7 Add global Swaparr toggle functionality in settings forms
- Introduced a method to check if Swaparr is globally enabled, affecting the state of Swaparr toggles across various app forms.
- Updated the UI to reflect the global state, disabling or enabling Swaparr options based on the global setting.
- Enhanced help text to inform users when Swaparr is globally disabled.
- Implemented caching for Swaparr settings in localStorage to maintain state across sessions.
- Added a method to update the disabled state of Swaparr fields dynamically based on the global setting.
2025-06-14 21:14:06 -04:00
Admin9705
c835077d3e Add timezone caching and improve date formatting in huntarrUI
- Implemented caching of settings in localStorage for easier timezone access.
- Enhanced date formatting function to handle invalid dates and log errors.
- Improved timezone retrieval logic to check multiple sources, including localStorage.
- Updated sidebar to link to the Huntarr website for better navigation.
- Added new timezone options in settings forms for broader user selection.
2025-06-14 20:58:06 -04:00
Admin9705
431fd6f841 Update sleep duration settings across multiple applications to use minutes instead of seconds. Implement minimum value enforcement of 10 minutes (600 seconds) in both frontend forms and backend settings manager, enhancing user guidance and logging for adjustments made during settings save operations. 2025-06-14 17:45:42 -04:00
Admin9705
b8b15d0957 Limit hourly API cap to a maximum of 250 for various applications in settings forms. Update frontend input fields and help texts to reflect this change, ensuring users are informed about the new limit and potential consequences of exceeding it. Enhance backend settings manager to enforce this limit during settings save operations. 2025-06-14 17:11:46 -04:00
Admin9705
94e4423ea5 Refactor logs and remove Hunt Manager functionality 2025-06-12 17:01:16 -04:00
Admin9705
3088f7629c Display update 2025-06-12 12:54:13 -04:00
Admin9705
fcfbb4d75d update 2025-06-12 12:28:41 -04:00
Admin9705
c6cc9df187 updates 2025-06-12 12:18:37 -04:00
Admin9705
165570dc51 Form Updates 2025-06-12 11:44:31 -04:00
Admin9705
55a6fafe49 Tally Updates 2025-06-12 11:33:09 -04:00
Admin9705
6fc07601ec updates 2025-06-12 10:00:15 -04:00
Admin9705
ceb0af32be updates 2025-06-11 14:52:44 -04:00
Admin9705
5fcb8b2bf9 Docs 2025-06-11 10:52:12 -04:00
Admin9705
d2f335bedb more updates 2025-06-11 10:48:07 -04:00
Admin9705
f2020444a2 docs updates 2025-06-11 10:42:06 -04:00