fix: NFO timestamp consistency and enhanced episode processing debug

NFO Management Timestamp Fix:
- Fix NFO management comments to use local timezone instead of UTC
- Both movie and TV episode NFO files now show consistent local timezone
- Comments now show: <!-- managed by NFOGuard at 2025-09-14T09:29:06-04:00 -->

Enhanced Episode Processing Debug:
- Add comprehensive debug logging for webhook episode database lookups
- Track IMDb ID and season/episode info throughout processing pipeline
- Add database write verification to catch storage issues immediately
- Enhanced logging will help identify duplicate processing root causes

This addresses the issue where episodes were being treated as new downloads
instead of finding existing database entries, helping prevent duplicate processing.
This commit is contained in:
2025-09-14 10:27:05 -04:00
parent 7af7b1c43e
commit d8754e41a7
4 changed files with 51 additions and 9 deletions
+25 -1
View File
@@ -269,6 +269,30 @@ sonarr-nfo-cache | [2025-09-14T09:37:00-04:00] INFO: Batched movie webhook...
---
---
### 🆕 v0.6.6 NFO Timestamp & Duplicate Processing Fixes (September 2025)
**🕰️ NFO Management Timestamp Fix:**
- **Problem**: NFO management comments still showed UTC timestamps despite container timezone setting
- **Fix**: All NFO file comments now respect local timezone
- **Before**: `<!-- managed by NFOGuard at 2025-09-14T13:29:06+00:00 -->`
- **After**: `<!-- managed by NFOGuard at 2025-09-14T09:29:06-04:00 -->`
**🔍 Enhanced Episode Processing Debug:**
- **Enhanced Logging**: Added comprehensive debug logging for episode database lookups
- **Duplicate Detection**: Improved tracking of why episodes might be processed multiple times
- **Database Verification**: Added verification logging after database writes
- **IMDb ID Tracking**: Enhanced logging shows IMDb ID in processing messages
**🛠️ Technical Improvements:**
- **NFO Manager**: Updated both movie and TV episode NFO timestamp generation
- **Webhook Processing**: Added detailed debug logging for episode lookup failures
- **Database Integrity**: Added immediate verification of database writes
- **Troubleshooting Ready**: Enhanced logging will help identify duplicate processing causes
---
**Last Updated:** September 14, 2025
**Version:** v0.6.5
**Version:** v0.6.6
**Status:** Enhanced Production Ready