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
This commit is contained in:
2025-09-10 09:08:09 -04:00
parent fc983ed472
commit f586185a4f
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1 +1 @@
0.2.15 0.0.15
+2 -2
View File
@@ -1043,8 +1043,8 @@ async def debug_movie_import_date(imdb_id: str):
dummy_path = Path("/tmp/test") dummy_path = Path("/tmp/test")
try: try:
# Get the movie processor instance to test full decision logic # Use the global movie processor instance to test full decision logic
movie_processor = batcher.movie_processor global movie_processor
if movie_processor: if movie_processor:
# Test the full decision logic (including TMDB fallback) # Test the full decision logic (including TMDB fallback)
final_date, final_source, released = movie_processor._decide_movie_dates( final_date, final_source, released = movie_processor._decide_movie_dates(