dev #66
+5
-1
@@ -789,6 +789,7 @@ async def manual_scan(background_tasks: BackgroundTasks, path: Optional[str] = N
|
|||||||
paths_to_scan = []
|
paths_to_scan = []
|
||||||
if path:
|
if path:
|
||||||
paths_to_scan = [Path(path)]
|
paths_to_scan = [Path(path)]
|
||||||
|
print(f"DEBUG: Manual scan with specific path: {path}")
|
||||||
else:
|
else:
|
||||||
if scan_type in ["both", "tv"]:
|
if scan_type in ["both", "tv"]:
|
||||||
paths_to_scan.extend(config.tv_paths)
|
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")
|
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
|
sonarr_client = tv_processor_obj.sonarr if tv_processor_obj and hasattr(tv_processor_obj, 'sonarr') else None
|
||||||
shutdown_event = dependencies.get("shutdown_event")
|
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:
|
try:
|
||||||
# Determine force_scan based on scan mode
|
# Determine force_scan based on scan mode
|
||||||
force_scan = (scan_mode == "full")
|
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)
|
result = tv_processor.process_series(scan_path, force_scan=force_scan)
|
||||||
tv_series_total += 1
|
tv_series_total += 1
|
||||||
if result == "skipped":
|
if result == "skipped":
|
||||||
|
|||||||
Reference in New Issue
Block a user