From a6dac0563bafef1b5f3e9a81317a4e004e2f1f75 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Mon, 8 Feb 2021 11:19:54 -0500 Subject: [PATCH] spelling fix --- config/Movies.yml.template | 2 +- modules/config.py | 2 +- modules/radarr.py | 4 ++-- modules/tmdb.py | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/config/Movies.yml.template b/config/Movies.yml.template index 9ca7ac5f..f573d354 100644 --- a/config/Movies.yml.template +++ b/config/Movies.yml.template @@ -1159,7 +1159,7 @@ collections: sync_mode: sync ###################################################### -# TMDB Collections # +# TMDb Collections # ###################################################### 101 Dalmatians: tmdb_collection_details: 100693 diff --git a/modules/config.py b/modules/config.py index 4617ecf8..a9ebe94c 100644 --- a/modules/config.py +++ b/modules/config.py @@ -935,7 +935,7 @@ class Config: try: title = str(self.TMDb.get_movie(missing_id).title) missing_movies_with_names.append((title, missing_id)) - logger.info("{} Collection | ? | {} (TMDB: {})".format(collection_name, title, missing_id)) + logger.info("{} Collection | ? | {} (TMDb: {})".format(collection_name, title, missing_id)) except Failed as e: logger.error(e) logger.info("{} Movie{} Missing".format(len(missing_movies), "s" if len(missing_movies) > 1 else "")) diff --git a/modules/radarr.py b/modules/radarr.py index 6a8bdb72..2434a9d8 100644 --- a/modules/radarr.py +++ b/modules/radarr.py @@ -52,11 +52,11 @@ class RadarrAPI: try: year = movie.release_date.split("-")[0] except AttributeError: - logger.error("TMDB Error: No year for ({}) {}".format(tmdb_id, movie.title)) + logger.error("TMDb Error: No year for ({}) {}".format(tmdb_id, movie.title)) continue if year.isdigit() is False: - logger.error("TMDB Error: No release date yet for ({}) {}".format(tmdb_id, movie.title)) + logger.error("TMDb Error: No release date yet for ({}) {}".format(tmdb_id, movie.title)) continue poster = "https://image.tmdb.org/t/p/original{}".format(movie.poster_path) diff --git a/modules/tmdb.py b/modules/tmdb.py index 1fff8bee..78732687 100644 --- a/modules/tmdb.py +++ b/modules/tmdb.py @@ -31,7 +31,7 @@ class TMDbAPI: @retry(stop_max_attempt_number=6, wait_fixed=10000, retry_on_exception=util.retry_if_not_failed) def convert_from_tmdb(self, tmdb_id, convert_to, is_movie): try: return self.Movie.external_ids(tmdb_id)[convert_to] if is_movie else self.TV.external_ids(tmdb_id)[convert_to] - except TMDbException: raise Failed("TMDB Error: No {} found for TMDb ID {}".format(convert_to.upper().replace("B_", "b "), tmdb_id)) + except TMDbException: raise Failed("TMDb Error: No {} found for TMDb ID {}".format(convert_to.upper().replace("B_", "b "), tmdb_id)) @retry(stop_max_attempt_number=6, wait_fixed=10000, retry_on_exception=util.retry_if_not_failed) @@ -39,7 +39,7 @@ class TMDbAPI: search_results = self.Movie.external(external_id=external_id, external_source=external_source) search = search_results["movie_results" if is_movie else "tv_results"] if len(search) == 1: return search[0]["id"] - else: raise Failed("TMDB Error: No TMDb ID found for {} {}".format(external_source.upper().replace("B_", "b "), external_id)) + else: raise Failed("TMDb Error: No TMDb ID found for {} {}".format(external_source.upper().replace("B_", "b "), external_id)) def convert_tmdb_to_imdb(self, tmdb_id, is_movie=True): return self.convert_from_tmdb(tmdb_id, "imdb_id", is_movie) def convert_imdb_to_tmdb(self, imdb_id, is_movie=True): return self.convert_to_tmdb(imdb_id, "imdb_id", is_movie)