Skip to content

[Universal] Add automatic API version detection for Arr apps#404

Open
mkaltner wants to merge 1 commit intoRandomNinjaAtk:mainfrom
mkaltner:fix-api-version-detection
Open

[Universal] Add automatic API version detection for Arr apps#404
mkaltner wants to merge 1 commit intoRandomNinjaAtk:mainfrom
mkaltner:fix-api-version-detection

Conversation

@mkaltner
Copy link

Fixes #369

Problem

Scripts are hardcoded to use API v1, but current versions of Lidarr/Radarr/Sonarr use API v3, causing connection failures.

Solution

  • Implement automatic API version detection in verifyApiAccess()
  • Try v3 first (current standard), fall back to v1 for older installations
  • Add logging to show which API version successfully connected
  • Maintains backward compatibility with older Arr app versions

Testing

Tested with both API v1 and v3 endpoints. Successfully detects and uses the correct version.

Changes

  • Modified universal/functions.bash: Updated verifyApiAccess() function

Fixes RandomNinjaAtk#369

   - Try API v3 first (current standard), fall back to v1 for older versions
   - Add logging to show which API version connected successfully
   - Update verifyApiAccess function in universal/functions.bash

   This resolves connection failures with newer Lidarr/Radarr/Sonarr
   installations that use API v3 instead of the hardcoded v1.
@mkaltner mkaltner changed the title Add automatic API version detection for Arr apps [Universal] Add automatic API version detection for Arr apps Feb 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] - Lidarr - Scripts endlessly looping

1 participant