From 218858314d876481914153de6a2c746775027370 Mon Sep 17 00:00:00 2001 From: orbitalo Date: Tue, 31 Mar 2026 11:24:16 +0000 Subject: [PATCH] fix: should_exclude_production_country calls load_filminfo_cache --- homelab-ai-bot/tools/savetv_country_filter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homelab-ai-bot/tools/savetv_country_filter.py b/homelab-ai-bot/tools/savetv_country_filter.py index 066e387c..2f077029 100644 --- a/homelab-ai-bot/tools/savetv_country_filter.py +++ b/homelab-ai-bot/tools/savetv_country_filter.py @@ -17,7 +17,7 @@ FILMINFO_CACHE = Path("/mnt/savetv/.filminfo_cache.json") # Deutschland / Frankreich (haeufige Wikidata-Sprachvarianten) _COUNTRY_EXCL = re.compile( r"\b(" - r"deutschland|germany|allemagne|bundesrepublik(\s+deutschland)?|" + r"deutschland|germany|allemnage|bundesrepublik(\s+deutschland)?|" r"west\s+germany|east\s+germany|german\s+democratic\s+republic|" r"rfa|\bbrd\b|\bddr\b|\bgdr\b|" r"frankreich|france|republique\s+francaise" @@ -69,7 +69,7 @@ def should_exclude_production_country(title: str, cache: dict | None = None) -> """True, wenn ein Produktionsland DE oder FR ist (laut Wikidata-Cache).""" if not _enabled(): return False - cache = load_filminfo_filter() if cache is None else cache + cache = load_filminfo_cache() if cache is None else cache countries = _countries_for_title(title, cache) if not countries: return False