savetv: Archiv-Tool filtert DE/FR-Produktionslaender wie Web-UI

This commit is contained in:
orbitalo 2026-03-31 12:54:30 +00:00
parent 4aaa206147
commit 3776f4ff71

View file

@ -570,6 +570,9 @@ def handle_get_savetv_archive_filme(**kw):
seen_titles = {} seen_titles = {}
series_count = 0 series_count = 0
excluded_count = 0 excluded_count = 0
from tools import savetv_country_filter
filminfo_cache = savetv_country_filter.load_filminfo_cache()
for e in entries: for e in entries:
tc = e.get("STRTELECASTENTRY", {}) tc = e.get("STRTELECASTENTRY", {})
@ -582,6 +585,9 @@ def handle_get_savetv_archive_filme(**kw):
if _is_excluded(title): if _is_excluded(title):
excluded_count += 1 excluded_count += 1
continue continue
if savetv_country_filter.should_exclude_production_country(title, filminfo_cache):
excluded_count += 1
continue
station = tc.get("STVSTATIONNAME", "?") station = tc.get("STVSTATIONNAME", "?")
days_left = int(tc.get("IDAYSLEFTBEFOREDELETE", 0)) days_left = int(tc.get("IDAYSLEFTBEFOREDELETE", 0))