diff --git a/api/routes.py b/api/routes.py index 676f3ec..33d9d7e 100644 --- a/api/routes.py +++ b/api/routes.py @@ -789,6 +789,7 @@ async def manual_scan(background_tasks: BackgroundTasks, path: Optional[str] = N paths_to_scan = [] if path: paths_to_scan = [Path(path)] + print(f"DEBUG: Manual scan with specific path: {path}") else: if scan_type in ["both", "tv"]: paths_to_scan.extend(config.tv_paths) @@ -831,10 +832,13 @@ async def manual_scan(background_tasks: BackgroundTasks, path: Optional[str] = N tv_processor_obj = dependencies.get("tv_processor") sonarr_client = tv_processor_obj.sonarr if tv_processor_obj and hasattr(tv_processor_obj, 'sonarr') else None shutdown_event = dependencies.get("shutdown_event") - if nfo_manager.parse_imdb_from_path_with_nfo_fallback(scan_path, sonarr_client, shutdown_event): + imdb_id = nfo_manager.parse_imdb_from_path_with_nfo_fallback(scan_path, sonarr_client, shutdown_event) + print(f"DEBUG: Manual scan IMDb detection for {scan_path}: {imdb_id}") + if imdb_id: try: # Determine force_scan based on scan mode force_scan = (scan_mode == "full") + print(f"DEBUG: Processing series {scan_path} with force_scan={force_scan}") result = tv_processor.process_series(scan_path, force_scan=force_scan) tv_series_total += 1 if result == "skipped":