mirror of
https://github.com/sct/overseerr.git
synced 2025-09-17 17:24:35 +02:00
fix(services): include radarr/sonarr baseUrl when adding media
This commit is contained in:
@@ -251,7 +251,7 @@ export class MediaRequest {
|
|||||||
apiKey: radarrSettings.apiKey,
|
apiKey: radarrSettings.apiKey,
|
||||||
url: `${radarrSettings.useSsl ? 'https' : 'http'}://${
|
url: `${radarrSettings.useSsl ? 'https' : 'http'}://${
|
||||||
radarrSettings.hostname
|
radarrSettings.hostname
|
||||||
}:${radarrSettings.port}/api`,
|
}:${radarrSettings.port}${radarrSettings.baseUrl ?? ''}/api`,
|
||||||
});
|
});
|
||||||
const movie = await tmdb.getMovie({ movieId: this.media.tmdbId });
|
const movie = await tmdb.getMovie({ movieId: this.media.tmdbId });
|
||||||
|
|
||||||
@@ -320,7 +320,7 @@ export class MediaRequest {
|
|||||||
apiKey: sonarrSettings.apiKey,
|
apiKey: sonarrSettings.apiKey,
|
||||||
url: `${sonarrSettings.useSsl ? 'https' : 'http'}://${
|
url: `${sonarrSettings.useSsl ? 'https' : 'http'}://${
|
||||||
sonarrSettings.hostname
|
sonarrSettings.hostname
|
||||||
}:${sonarrSettings.port}/api`,
|
}:${sonarrSettings.port}${sonarrSettings.baseUrl ?? ''}/api`,
|
||||||
});
|
});
|
||||||
const series = await tmdb.getTvShow({ tvId: media.tmdbId });
|
const series = await tmdb.getTvShow({ tvId: media.tmdbId });
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user