diff --git a/VERSION b/VERSION index 0c2c783..eae4a66 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.2.20 +2.2.21 diff --git a/processors/tv_processor.py b/processors/tv_processor.py index dfb7d24..472a892 100644 --- a/processors/tv_processor.py +++ b/processors/tv_processor.py @@ -113,6 +113,7 @@ class TVProcessor: def _gather_episode_dates(self, series_path: Path, imdb_id: str, disk_episodes: Dict[Tuple[int, int], List[Path]]) -> Dict[Tuple[int, int], Tuple[Optional[str], Optional[str], str]]: """Gather episode air dates and date added information with database-first optimization""" + _log("INFO", f"🎯 GATHERING EPISODE DATES for {imdb_id}: {len(disk_episodes)} episodes on disk") episode_dates = {} episodes_needing_lookup = [] @@ -250,6 +251,10 @@ class TVProcessor: episode_dates[(season, episode)] = (aired, dateadded, source) + _log("INFO", f"🎯 EPISODE DATES GATHERED: {len(episode_dates)} episodes with dates") + for (s, e), (aired, dateadded, source) in episode_dates.items(): + _log("INFO", f" S{s:02d}E{e:02d}: aired={aired}, dateadded={dateadded}, source={source}") + return episode_dates def _get_sonarr_episodes(self, imdb_id: str, episodes_filter: List[Tuple[int, int]] = None) -> Dict[Tuple[int, int], Dict[str, Any]]: