Root cause: NFO files were missing dateadded/aired because update logic
wasn't actually fetching episode data - just passing None values.
Fixed by implementing proper data lookup chain:
1. Check NFOGuard database for existing episode data
2. Query Sonarr API for import date (preferred for dateadded)
3. Get episode airdate from Sonarr
4. Fallback to using airdate as dateadded if no import date
Added _get_episode_dates_from_apis() method that follows the same
logic as regular episode processing, ensuring NFO updates get
proper dateadded and aired values instead of just basic metadata.
This should resolve the missing NFOGuard fields in episode NFO files.
Changes:
- Disabled creation/updating of season.nfo and tvshow.nfo files
NFOGuard should only manage episode NFO files, not series-level files
- Added debugging output to track aired/dateadded values in NFO updates
The example NFO was missing these crucial fields despite processing
Debug logs will show if data is being passed correctly to update function
This ensures NFOGuard only manages episode-level metadata files and
helps identify why some NFO files are missing the dateadded/aired fields.
Instead of migrating long NFO names to standardized S01E01.nfo format,
now preserves original filenames that match video files while still
populating NFOGuard metadata (dateadded, aired, season, episode).
Changes:
- Added update_episode_nfo_preserving_name() method to NFOManager
- Added find_episode_nfo_matching_video() to locate NFO files by video name pattern
- Modified TVProcessor to update existing NFOs in-place rather than migrate names
- Episodes with existing NFOs now get "nfo_update_required" source for special handling
This maintains the user's preferred naming convention where NFO files
match their corresponding video files exactly.