Skip to content

Commit

Permalink
fix(services): include radarr/sonarr baseUrl when adding media
Browse files Browse the repository at this point in the history
  • Loading branch information
sct committed Dec 14, 2020
1 parent 67a8f7f commit 78af1a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/entity/MediaRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 });

Expand Down Expand Up @@ -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 });

Expand Down

0 comments on commit 78af1a3

Please sign in to comment.