fix: correctly load series fallback modal with sonarr v4 (#3451)

This commit is contained in:
Brandon Cohen
2023-05-11 00:43:11 -04:00
committed by GitHub
parent c27f96096a
commit e051b1dfea

View File

@@ -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 {