diff --git a/nfoguard.py b/nfoguard.py index 0f3369a..74b0b85 100644 --- a/nfoguard.py +++ b/nfoguard.py @@ -1005,6 +1005,8 @@ class MovieProcessor: (config.movie_poll_mode == "if_missing" and existing and not existing.get("dateadded")) ) + _log("DEBUG", f"Movie {imdb_id}: should_query={should_query}, poll_mode={config.movie_poll_mode}, existing={bool(existing)}, has_dateadded={bool(existing and existing.get('dateadded')) if existing else False}") + # Use existing movie date decision logic dateadded, source, released = self._decide_movie_dates(imdb_id, movie_path, should_query, existing) @@ -1055,7 +1057,10 @@ class MovieProcessor: def _decide_movie_dates(self, imdb_id: str, movie_path: Path, should_query: bool, existing: Optional[Dict]) -> Tuple[str, str, Optional[str]]: """Decide movie dates based on configuration and available data""" + _log("DEBUG", f"_decide_movie_dates for {imdb_id}: should_query={should_query}, existing={existing}") + if not should_query and existing: + _log("DEBUG", f"Using existing data without querying: dateadded={existing.get('dateadded')}, source={existing.get('source')}") return existing["dateadded"], existing["source"], existing.get("released") # Query Radarr for movie info