mirror of
https://github.com/sct/overseerr.git
synced 2025-09-17 17:24:35 +02:00
fix(radarr): correctly check for existing movies (#2490)
This commit is contained in:

committed by
GitHub

parent
92b2d32d2e
commit
5d4b06bbcc
@@ -27,7 +27,6 @@ export interface RadarrMovie {
|
||||
profileId: number;
|
||||
qualityProfileId: number;
|
||||
added: string;
|
||||
downloaded: boolean;
|
||||
hasFile: boolean;
|
||||
}
|
||||
|
||||
@@ -85,7 +84,7 @@ class RadarrAPI extends ServarrBase<{ movieId: number }> {
|
||||
try {
|
||||
const movie = await this.getMovieByTmdbId(options.tmdbId);
|
||||
|
||||
if (movie.downloaded) {
|
||||
if (movie.hasFile) {
|
||||
logger.info(
|
||||
'Title already exists and is available. Skipping add and returning success',
|
||||
{
|
||||
|
@@ -73,7 +73,7 @@ class RadarrScanner
|
||||
}
|
||||
|
||||
private async processRadarrMovie(radarrMovie: RadarrMovie): Promise<void> {
|
||||
if (!radarrMovie.monitored && !radarrMovie.downloaded) {
|
||||
if (!radarrMovie.monitored && !radarrMovie.hasFile) {
|
||||
this.log(
|
||||
'Title is unmonitored and has not been downloaded. Skipping item.',
|
||||
'debug',
|
||||
@@ -92,7 +92,7 @@ class RadarrScanner
|
||||
externalServiceId: radarrMovie.id,
|
||||
externalServiceSlug: radarrMovie.titleSlug,
|
||||
title: radarrMovie.title,
|
||||
processing: !radarrMovie.downloaded,
|
||||
processing: !radarrMovie.hasFile,
|
||||
});
|
||||
} catch (e) {
|
||||
this.log('Failed to process Radarr media', 'error', {
|
||||
|
Reference in New Issue
Block a user