From d17f9241920ee1a1374033d6b01ea816b2f89d9f Mon Sep 17 00:00:00 2001 From: sbcrumb Date: Wed, 15 Oct 2025 21:13:51 -0400 Subject: [PATCH] fix: nfo cache --- VERSION | 2 +- processors/tv_processor.py | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index ed1fc35..c36c648 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.2.16 +2.2.17 diff --git a/processors/tv_processor.py b/processors/tv_processor.py index f19c6f5..f39f873 100644 --- a/processors/tv_processor.py +++ b/processors/tv_processor.py @@ -163,6 +163,13 @@ class TVProcessor: dateadded = nfo_data.get('dateadded') source = nfo_data.get('source', 'nfo_cache') + _log("DEBUG", f"S{season:02d}E{episode:02d}: NFO data found - aired={aired}, dateadded={dateadded}, source={source}") + + # Skip incomplete NFO files with "unknown" source or no useful dates + if source == "unknown" and not dateadded and not aired: + _log("INFO", f"S{season:02d}E{episode:02d}: Ignoring incomplete NFO file with source 'unknown' and no dates") + continue # Skip this NFO file, try other episode files or proceed to API lookup + # Apply fallback logic if NFO has aired but no dateadded if not dateadded and aired: dateadded = aired