fix: Add automatic episode data lookup to NFO update method
Local Docker Build (Dev) / build-dev (push) Successful in 19s

Root cause identified: update_episode_nfo_preserving_name() was receiving
None values for aired/dateadded and just updating NFO with basic fields.

Fixed by:
- Adding automatic data fetching when missing episode data detected
- Passing imdb_id and tv_processor to enable API calls
- Added fallback logic to fetch from database/Sonarr when data missing
- Will show clear debug output when fetching missing data

Now when NFO files are updated, they will automatically get proper
dateadded and aired fields from the NFOGuard database or Sonarr API.

This should resolve the missing NFOGuard metadata in episode NFO files.
This commit is contained in:
2025-09-26 09:31:19 -04:00
parent 79aa49cbf1
commit e3a119efd7
3 changed files with 19 additions and 3 deletions
+1 -1
View File
@@ -1 +1 @@
1.9.8
1.9.9