From 78af1a3e6d00a5645a05e7bf3cf56a59439b6cc9 Mon Sep 17 00:00:00 2001 From: sct Date: Mon, 14 Dec 2020 16:39:01 +0000 Subject: [PATCH] fix(services): include radarr/sonarr baseUrl when adding media --- server/entity/MediaRequest.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/entity/MediaRequest.ts b/server/entity/MediaRequest.ts index dc20cad74..1bfe23741 100644 --- a/server/entity/MediaRequest.ts +++ b/server/entity/MediaRequest.ts @@ -251,7 +251,7 @@ export class MediaRequest { apiKey: radarrSettings.apiKey, url: `${radarrSettings.useSsl ? 'https' : 'http'}://${ radarrSettings.hostname - }:${radarrSettings.port}/api`, + }:${radarrSettings.port}${radarrSettings.baseUrl ?? ''}/api`, }); const movie = await tmdb.getMovie({ movieId: this.media.tmdbId }); @@ -320,7 +320,7 @@ export class MediaRequest { apiKey: sonarrSettings.apiKey, url: `${sonarrSettings.useSsl ? 'https' : 'http'}://${ sonarrSettings.hostname - }:${sonarrSettings.port}/api`, + }:${sonarrSettings.port}${sonarrSettings.baseUrl ?? ''}/api`, }); const series = await tmdb.getTvShow({ tvId: media.tmdbId });