From ee50a2c4e6d52ab8b9d6be9a48fdcd539aa55a28 Mon Sep 17 00:00:00 2001 From: desimaniac <5501908+desimaniac@users.noreply.github.com> Date: Thu, 26 Sep 2019 13:28:28 -0500 Subject: [PATCH] PVR: Minor tweak to variable name --- media/radarr.py | 6 +++--- media/sonarr.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/media/radarr.py b/media/radarr.py index 6da8d58..a1c6ac5 100644 --- a/media/radarr.py +++ b/media/radarr.py @@ -12,7 +12,7 @@ class Radarr(PVR): return self._get_objects('api/movie') @backoff.on_predicate(backoff.expo, lambda x: x is None, max_tries=4, on_backoff=backoff_handler) - def add_movie(self, movie_tmdbid, movie_title, movie_year, movie_title_slug, profile_id, root_folder, + def add_movie(self, movie_tmdb_id, movie_title, movie_year, movie_title_slug, profile_id, root_folder, min_availability_temp, search_missing=False): payload = self._prepare_add_object_payload(movie_title, movie_title_slug, profile_id, root_folder) @@ -27,7 +27,7 @@ class Radarr(PVR): minimum_availability = 'released' payload = dict_merge(payload, { - 'tmdbId': movie_tmdbid, + 'tmdbId': movie_tmdb_id, 'year': movie_year, 'minimumAvailability': minimum_availability, 'addOptions': { @@ -35,4 +35,4 @@ class Radarr(PVR): } }) - return self._add_object('api/movie', payload, identifier_field='tmdbId', identifier=movie_tmdbid) + return self._add_object('api/movie', payload, identifier_field='tmdbId', identifier=movie_tmdb_id) diff --git a/media/sonarr.py b/media/sonarr.py index 50d9247..387a43d 100644 --- a/media/sonarr.py +++ b/media/sonarr.py @@ -42,12 +42,12 @@ class Sonarr(PVR): return None @backoff.on_predicate(backoff.expo, lambda x: x is None, max_tries=4, on_backoff=backoff_handler) - def add_series(self, series_tvdbid, series_title, series_title_slug, profile_id, root_folder, tag_ids=None, + def add_series(self, series_tvdb_id, series_title, series_title_slug, profile_id, root_folder, tag_ids=None, search_missing=False): payload = self._prepare_add_object_payload(series_title, series_title_slug, profile_id, root_folder) payload = dict_merge(payload, { - 'tvdbId': series_tvdbid, + 'tvdbId': series_tvdb_id, 'tags': [] if not tag_ids or not isinstance(tag_ids, list) else tag_ids, 'seasons': [], 'seasonFolder': True, @@ -56,4 +56,4 @@ class Sonarr(PVR): } }) - return self._add_object('api/series', payload, identifier_field='tvdbId', identifier=series_tvdbid) + return self._add_object('api/series', payload, identifier_field='tvdbId', identifier=series_tvdb_id)