From 57de771ca28f68ee25855f8854ee4b56e6ce36c7 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Tue, 6 Jul 2021 09:55:52 -0400 Subject: [PATCH] fixed overlay --- modules/plex.py | 4 +++- modules/radarr.py | 2 +- modules/sonarr.py | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/modules/plex.py b/modules/plex.py index 2d5975ab..0ad4747e 100644 --- a/modules/plex.py +++ b/modules/plex.py @@ -814,7 +814,9 @@ class Plex: if len(matches) > 0: episode_poster = ImageData("asset_directory", os.path.abspath(matches[0]), prefix=f"{item.title} {episode.seasonEpisode.upper()}'s ", is_url=False) self.upload_images(episode, poster=episode_poster) - if not found_one: + if not found_one and overlay: + self.upload_images(item, overlay=overlay) + elif not found_one: logger.error(f"Asset Warning: No asset folder found called '{name}'") def find_collection_assets(self, item, name=None): diff --git a/modules/radarr.py b/modules/radarr.py index 3dd50dfc..86ab67de 100644 --- a/modules/radarr.py +++ b/modules/radarr.py @@ -71,7 +71,7 @@ class Radarr: logger.info("") logger.info(f"{apply_tags_translation[apply_tags].capitalize()} Radarr Tags: {tags}") - edited, not_exists = self.api.edit_multiple_movies(tmdb_ids, tags=tags, apply_tags=apply_tags) + edited, not_exists = self.api.edit_multiple_movies(tmdb_ids, tags=tags, apply_tags=apply_tags_translation[apply_tags]) if len(edited) > 0: logger.info("") diff --git a/modules/sonarr.py b/modules/sonarr.py index 80bbb65e..150e32dd 100644 --- a/modules/sonarr.py +++ b/modules/sonarr.py @@ -84,12 +84,12 @@ class Sonarr: logger.info("") logger.info(f"{apply_tags_translation[apply_tags].capitalize()} Sonarr Tags: {tags}") - edited, not_exists = self.api.edit_multiple_series(tvdb_ids, tags=tags, apply_tags=apply_tags) + edited, not_exists = self.api.edit_multiple_series(tvdb_ids, tags=tags, apply_tags=apply_tags_translation[apply_tags]) if len(edited) > 0: logger.info("") for series in edited: - logger.info(f"Radarr Tags | {series.title:<25} | {series.tags}") + logger.info(f"Sonarr Tags | {series.title:<25} | {series.tags}") logger.info(f"{len(edited)} Series edited in Sonarr") if len(not_exists) > 0: