fix: should_exclude_production_country calls load_filminfo_cache

This commit is contained in:
orbitalo 2026-03-31 11:24:16 +00:00
parent 830682945b
commit 218858314d

View file

@ -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