PVR: Minor tweak to variable name

pull/105/head
desimaniac 5 years ago
parent 12479c2d70
commit ee50a2c4e6

@ -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)

@ -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)

Loading…
Cancel
Save