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:
+2
-2
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user