diff --git a/modules/builder.py b/modules/builder.py index 6055d7e5..6c0a1c9f 100644 --- a/modules/builder.py +++ b/modules/builder.py @@ -923,7 +923,7 @@ class CollectionBuilder: else: raise Failed(f"{self.Type} Error: {method_name} attribute must be either all, future, missing, existing, pilot, first, latest or none") elif method_name == "sonarr_series": - if str(method_data).lower() in sonarr.series_type: + if str(method_data).lower() in sonarr.series_types: self.sonarr_details["series"] = str(method_data).lower() else: raise Failed(f"{self.Type} Error: {method_name} attribute must be either standard, daily, or anime") diff --git a/modules/radarr.py b/modules/radarr.py index c6fb1a21..74b5e0fe 100644 --- a/modules/radarr.py +++ b/modules/radarr.py @@ -60,8 +60,9 @@ class Radarr: if movie.path: arr_paths[movie.path[:-1] if movie.path.endswith(("/", "\\")) else movie.path] = movie.tmdbId arr_ids[movie.tmdbId] = movie - logger.debug(arr_paths) - logger.debug(arr_ids) + if self.config.trace_mode: + logger.debug(arr_paths) + logger.debug(arr_ids) added = [] exists = [] diff --git a/modules/sonarr.py b/modules/sonarr.py index 06035025..43179202 100644 --- a/modules/sonarr.py +++ b/modules/sonarr.py @@ -6,7 +6,7 @@ from arrapi.exceptions import ArrException, Invalid logger = logging.getLogger("Plex Meta Manager") -series_type = ["standard", "daily", "anime"] +series_types = ["standard", "daily", "anime"] monitor_translation = { "all": "all", "future": "future", "missing": "missing", "existing": "existing", "pilot": "pilot", "first": "firstSeason", "latest": "latestSeason", "none": "none" @@ -86,8 +86,9 @@ class Sonarr: if series.path: arr_paths[series.path[:-1] if series.path.endswith(("/", "\\")) else series.path] = series.tvdbId arr_paths[series.tvdbId] = series - logger.debug(arr_paths) - logger.debug(arr_ids) + if self.config.trace_mode: + logger.debug(arr_paths) + logger.debug(arr_ids) added = [] exists = []