|
|
@ -9,10 +9,10 @@ log = logger.get_logger(__name__)
|
|
|
|
|
|
|
|
|
|
|
|
class Radarr(PVR):
|
|
|
|
class Radarr(PVR):
|
|
|
|
def get_objects(self):
|
|
|
|
def get_objects(self):
|
|
|
|
return self._get_objects('api/movie')
|
|
|
|
return self._get_objects('api/v3/movie')
|
|
|
|
|
|
|
|
|
|
|
|
def get_exclusions(self):
|
|
|
|
def get_exclusions(self):
|
|
|
|
return self._get_objects('api/exclusions')
|
|
|
|
return self._get_objects('api/v3/exclusions')
|
|
|
|
|
|
|
|
|
|
|
|
@backoff.on_predicate(backoff.expo, lambda x: x is None, max_tries=4, on_backoff=backoff_handler)
|
|
|
|
@backoff.on_predicate(backoff.expo, lambda x: x is None, max_tries=4, on_backoff=backoff_handler)
|
|
|
|
def add_movie(self, movie_tmdb_id, movie_title, movie_year, movie_title_slug, quality_profile_id, root_folder,
|
|
|
|
def add_movie(self, movie_tmdb_id, movie_title, movie_year, movie_title_slug, quality_profile_id, root_folder,
|
|
|
@ -38,4 +38,4 @@ class Radarr(PVR):
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
return self._add_object('api/movie', payload, identifier_field='tmdbId', identifier=movie_tmdb_id)
|
|
|
|
return self._add_object('api/v3/movie', payload, identifier_field='tmdbId', identifier=movie_tmdb_id)
|
|
|
|