|
|
@ -387,9 +387,7 @@ export class MediaRequest {
|
|
|
|
const tmdb = new TheMovieDb();
|
|
|
|
const tmdb = new TheMovieDb();
|
|
|
|
const radarr = new RadarrAPI({
|
|
|
|
const radarr = new RadarrAPI({
|
|
|
|
apiKey: radarrSettings.apiKey,
|
|
|
|
apiKey: radarrSettings.apiKey,
|
|
|
|
url: `${radarrSettings.useSsl ? 'https' : 'http'}://${
|
|
|
|
url: RadarrAPI.buildRadarrUrl(radarrSettings, '/api/v3'),
|
|
|
|
radarrSettings.hostname
|
|
|
|
|
|
|
|
}:${radarrSettings.port}${radarrSettings.baseUrl ?? ''}/api`,
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
const movie = await tmdb.getMovie({ movieId: this.media.tmdbId });
|
|
|
|
const movie = await tmdb.getMovie({ movieId: this.media.tmdbId });
|
|
|
|
|
|
|
|
|
|
|
@ -535,9 +533,7 @@ export class MediaRequest {
|
|
|
|
const tmdb = new TheMovieDb();
|
|
|
|
const tmdb = new TheMovieDb();
|
|
|
|
const sonarr = new SonarrAPI({
|
|
|
|
const sonarr = new SonarrAPI({
|
|
|
|
apiKey: sonarrSettings.apiKey,
|
|
|
|
apiKey: sonarrSettings.apiKey,
|
|
|
|
url: `${sonarrSettings.useSsl ? 'https' : 'http'}://${
|
|
|
|
url: SonarrAPI.buildSonarrUrl(sonarrSettings, '/api/v3'),
|
|
|
|
sonarrSettings.hostname
|
|
|
|
|
|
|
|
}:${sonarrSettings.port}${sonarrSettings.baseUrl ?? ''}/api`,
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
const series = await tmdb.getTvShow({ tvId: media.tmdbId });
|
|
|
|
const series = await tmdb.getTvShow({ tvId: media.tmdbId });
|
|
|
|
const tvdbId = series.external_ids.tvdb_id ?? media.tvdbId;
|
|
|
|
const tvdbId = series.external_ids.tvdb_id ?? media.tvdbId;
|
|
|
|