Fix TV processor TIER 2 fallback logic for NFO files with aired but no dateadded
Local Docker Build (Dev) / build-dev (push) Successful in 4s
Local Docker Build (Dev) / build-dev (push) Successful in 4s
The issue was that TIER 2 (NFO cache) wasn't applying the aired date fallback when NFO files contained aired dates but no dateadded values. This caused episodes like "The Chosen" to show "no date added just air" because the system would find lockdata in TIER 2 but reject it due to missing dateadded, without applying the fallback logic. Changes: - Enhanced TIER 2 NFO processing to apply aired->dateadded fallback - Added debug logging for NFO fallback cases - Updated version to 2.0.23 🤖 Generated with [Claude Code](https://claude.ai/code)
This commit is contained in:
@@ -153,6 +153,12 @@ class TVProcessor:
|
|||||||
dateadded = nfo_data.get('dateadded')
|
dateadded = nfo_data.get('dateadded')
|
||||||
source = nfo_data.get('source', 'nfo_cache')
|
source = nfo_data.get('source', 'nfo_cache')
|
||||||
|
|
||||||
|
# Apply fallback logic if NFO has aired but no dateadded
|
||||||
|
if not dateadded and aired:
|
||||||
|
dateadded = aired
|
||||||
|
source = f"{source}_aired_fallback" if source != 'nfo_cache' else 'nfo_aired_fallback'
|
||||||
|
_log("DEBUG", f"S{season:02d}E{episode:02d}: NFO has aired but no dateadded, using aired as fallback: {dateadded}")
|
||||||
|
|
||||||
if dateadded:
|
if dateadded:
|
||||||
episode_dates[(season, episode)] = (aired, dateadded, source)
|
episode_dates[(season, episode)] = (aired, dateadded, source)
|
||||||
nfo_cache_hits += 1
|
nfo_cache_hits += 1
|
||||||
|
|||||||
Reference in New Issue
Block a user