From 1be819a3b9b964adb00c449eb2e5ba5e356ac787 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Sat, 3 Apr 2021 16:48:27 -0400 Subject: [PATCH] fix for #164 --- modules/builder.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/builder.py b/modules/builder.py index e43ef3f9..001c86b9 100644 --- a/modules/builder.py +++ b/modules/builder.py @@ -294,7 +294,7 @@ class CollectionBuilder: run_time = str(schedule).lower() if run_time.startswith("day") or run_time.startswith("daily"): skip_collection = False - if run_time.startswith("week") or run_time.startswith("month") or run_time.startswith("year"): + elif run_time.startswith("week") or run_time.startswith("month") or run_time.startswith("year"): match = re.search("\\(([^)]+)\\)", run_time) if match: param = match.group(1) @@ -939,8 +939,10 @@ class CollectionBuilder: if len(movie_ids) > 0: items_found_inside += len(movie_ids) for movie_id in movie_ids: - if movie_id in movie_map: items.append(movie_map[movie_id]) - else: missing_movies.append(movie_id) + if movie_id in movie_map: + items.append(movie_map[movie_id]) + else: + missing_movies.append(movie_id) if len(show_ids) > 0: items_found_inside += len(show_ids) for show_id in show_ids: