Skip to content

Commit

Permalink
fix: Fetching movies by tmdbId no longer utilizes Radarr's lookup end…
Browse files Browse the repository at this point in the history
…point (#1214)
  • Loading branch information
jorenn92 authored Aug 14, 2024
1 parent 90c011c commit 1a84b8c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions server/src/modules/api/servarr-api/helpers/radarr.helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,7 @@ export class RadarrApi extends ServarrApi<{ movieId: number }> {

public async getMovieByTmdbId(id: number): Promise<RadarrMovie> {
try {
const response = await this.get<RadarrMovie[]>('/movie/lookup', {
params: {
term: `tmdb:${id}`,
},
});
const response = await this.get<RadarrMovie[]>(`/movie?tmdbId=${id}`);

if (!response[0]) {
this.logger.warn(`Could not find Movie with TMDb id ${id} in Radarr`);
Expand Down

0 comments on commit 1a84b8c

Please sign in to comment.