From e051b1dfea9c9320cc9dd420c475ae74cff0d901 Mon Sep 17 00:00:00 2001 From: Brandon Cohen Date: Thu, 11 May 2023 00:43:11 -0400 Subject: [PATCH] fix: correctly load series fallback modal with sonarr v4 (#3451) --- server/routes/service.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/server/routes/service.ts b/server/routes/service.ts index b77d58c9..083e1eb5 100644 --- a/server/routes/service.ts +++ b/server/routes/service.ts @@ -183,9 +183,7 @@ serviceRoutes.get<{ tmdbId: string }>( const sonarr = new SonarrAPI({ apiKey: sonarrSettings.apiKey, - url: `${sonarrSettings.useSsl ? 'https' : 'http'}://${ - sonarrSettings.hostname - }:${sonarrSettings.port}${sonarrSettings.baseUrl ?? ''}/api`, + url: SonarrAPI.buildUrl(sonarrSettings, '/api/v3'), }); try {