Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version update 1.2.4 #197

Merged
merged 5 commits into from
Nov 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.2.3
1.2.4
6 changes: 5 additions & 1 deletion modules/upgradinatorr.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ 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:
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
logger.debug(f"{item['title']}, Season {i} unmonitored. Reason: monitored percentage {monitored_percentage} less than season_monitored_threshold {season_monitored_threshold}")
Expand Down