From 3776f4ff71dd2902d5bfd3c2d2ce4506f37ff1ff Mon Sep 17 00:00:00 2001 From: orbitalo Date: Tue, 31 Mar 2026 12:54:30 +0000 Subject: [PATCH] savetv: Archiv-Tool filtert DE/FR-Produktionslaender wie Web-UI --- homelab-ai-bot/tools/savetv.py | 6 ++++++ 1 file changed, 6 insertions(+) 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))