From 711ae083723d3b8c0d7c86db4b4bbb657a14255d Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Fri, 30 Jul 2021 14:50:08 -0400 Subject: [PATCH] #348 only run missing when needed --- plex_meta_manager.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plex_meta_manager.py b/plex_meta_manager.py index 704a4114..3e953f43 100644 --- a/plex_meta_manager.py +++ b/plex_meta_manager.py @@ -448,7 +448,9 @@ def run_collection(config, library, metadata, requested_collections): util.separator(f"Adding to {mapping_name} Collection", space=False, border=False) logger.info("") builder.add_to_collection() - if len(builder.missing_movies) > 0 or len(builder.missing_shows) > 0: + if (builder.details["show_missing"] is True or builder.details["save_missing"] is True + or (library.Radarr and builder.add_to_radarr) or (library.Sonarr and builder.add_to_sonarr)) \ + and (len(builder.missing_movies) > 0 or len(builder.missing_shows) > 0): if builder.details["show_missing"] is True: logger.info("") util.separator(f"Missing from Library", space=False, border=False)