diff --git a/homelab-ai-bot/tools/savetv.py b/homelab-ai-bot/tools/savetv.py index 54a80f68..92f4de48 100644 --- a/homelab-ai-bot/tools/savetv.py +++ b/homelab-ai-bot/tools/savetv.py @@ -570,6 +570,9 @@ def handle_get_savetv_archive_filme(**kw): seen_titles = {} series_count = 0 excluded_count = 0 + from tools import savetv_country_filter + + filminfo_cache = savetv_country_filter.load_filminfo_cache() for e in entries: tc = e.get("STRTELECASTENTRY", {}) @@ -582,6 +585,9 @@ def handle_get_savetv_archive_filme(**kw): if _is_excluded(title): excluded_count += 1 continue + if savetv_country_filter.should_exclude_production_country(title, filminfo_cache): + excluded_count += 1 + continue station = tc.get("STVSTATIONNAME", "?") days_left = int(tc.get("IDAYSLEFTBEFOREDELETE", 0))