From 6e33868be830c5bf36cfacf4d29a01562611de54 Mon Sep 17 00:00:00 2001 From: Larsen Vallecillo Date: Sun, 17 Nov 2024 19:28:57 -0600 Subject: [PATCH 1/3] Update upgradinatorr.py --- modules/upgradinatorr.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/upgradinatorr.py b/modules/upgradinatorr.py index c85c7da..3021bd7 100755 --- a/modules/upgradinatorr.py +++ b/modules/upgradinatorr.py @@ -64,7 +64,10 @@ def filter_media(media_dict, checked_tag_id, ignore_tag_id, count, season_monito if episode['monitored']: monitored_count += 1 # Change monitoring of season depending on how many unmonitored episodes there are - monitored_percentage = monitored_count / len(season['episode_data']) + if len(season["episode_data"]) > 0: + monitored_percentage = monitored_count / len(season['episode_data']) + else: + continue if monitored_percentage < season_monitored_threshold: item['seasons'][i]['monitored'] = False logger.debug(f"{item['title']}, Season {i} unmonitored. Reason: monitored percentage {monitored_percentage} less than season_monitored_threshold {season_monitored_threshold}") From 344f77df8e92f17ac7275c57399d629ef78af988 Mon Sep 17 00:00:00 2001 From: Drazzilb Date: Mon, 18 Nov 2024 19:18:56 -0800 Subject: [PATCH 2/3] [Add] Added logging - Added logging to new handling of series with 0 episodes loaded to them. --- modules/upgradinatorr.py | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/upgradinatorr.py b/modules/upgradinatorr.py index 3021bd7..661fda1 100755 --- a/modules/upgradinatorr.py +++ b/modules/upgradinatorr.py @@ -67,6 +67,7 @@ def filter_media(media_dict, checked_tag_id, ignore_tag_id, count, season_monito if len(season["episode_data"]) > 0: monitored_percentage = monitored_count / len(season['episode_data']) else: + logger.debug(f"Skipping {item['title']} ({item['year']}), Season {i} unmonitored. Reason: No episodes in season.") continue if monitored_percentage < season_monitored_threshold: item['seasons'][i]['monitored'] = False From 2f79865a6f602c48bbb1c98f3a80fd92bf242488 Mon Sep 17 00:00:00 2001 From: Drazzilb Date: Mon, 18 Nov 2024 19:21:26 -0800 Subject: [PATCH 3/3] Version 1.2.4 - Fix divide by zero error - Add Symlink and Hardlink Ex and Schema; Fix Schema for season_monitored_threshold --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index e2cac26..b966e81 100755 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.2.3 \ No newline at end of file +1.2.4 \ No newline at end of file