From f586185a4f32978d90475433e037acc45549e9ed Mon Sep 17 00:00:00 2001 From: SBCrumb Date: Wed, 10 Sep 2025 09:08:09 -0400 Subject: [PATCH] Fix debug endpoint to use global movie_processor instance - Corrected debug endpoint to use global movie_processor variable - Was incorrectly trying to access batcher.movie_processor (doesn't exist) - Now properly tests full TMDB fallback pipeline for rename-first movies --- VERSION | 2 +- nfoguard.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index b005e30..ceddfb2 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.2.15 +0.0.15 diff --git a/nfoguard.py b/nfoguard.py index 829154d..14333ab 100644 --- a/nfoguard.py +++ b/nfoguard.py @@ -1043,8 +1043,8 @@ async def debug_movie_import_date(imdb_id: str): dummy_path = Path("/tmp/test") try: - # Get the movie processor instance to test full decision logic - movie_processor = batcher.movie_processor + # Use the global movie processor instance to test full decision logic + global movie_processor if movie_processor: # Test the full decision logic (including TMDB fallback) final_date, final_source, released = movie_processor._decide_movie_dates(