fix: Use Sonarr import history for TV episode date detection

- Modified _get_sonarr_episodes to call get_episode_import_history() for each episode
- This retrieves actual import dates from Sonarr's history API instead of just episodeFile.dateAdded
- Added fallback to episodeFile.dateAdded if history lookup fails
- Updated source tracking to use 'sonarr:history.import' for better debugging
- Added debug logging to show which method found the import date
- Should resolve issue where episodes fall back to aired dates despite valid Sonarr imports
This commit is contained in:
2025-10-05 10:29:13 -04:00
parent 0dafcd64b2
commit 191e6f5f3f
2 changed files with 24 additions and 5 deletions
+1 -1
View File
@@ -1 +1 @@
2.0.7
2.0.8