verixon update
Local Docker Build (Dev) / build-dev (push) Successful in 33s

This commit is contained in:
2025-09-26 16:25:08 -04:00
parent 806370bd5f
commit 3d7460ad76
2 changed files with 18 additions and 8 deletions
+1 -1
View File
@@ -1 +1 @@
2.1.1-preserve-long-nfo-fix-fallback
2.1.2-preserve-long-nfo-fix-scan-logic
+17 -7
View File
@@ -2059,13 +2059,23 @@ async def manual_scan(background_tasks: BackgroundTasks, path: Optional[str] = N
except Exception as e:
_log("ERROR", f"Failed processing episode {scan_path}: {e}")
else:
# Full series processing
for item in scan_path.iterdir():
if item.is_dir() and nfo_manager.parse_imdb_from_path(item):
try:
tv_processor.process_series(item)
except Exception as e:
_log("ERROR", f"Failed processing TV series {item}: {e}")
# Check if this path itself is a series (has IMDb ID in the directory name)
if nfo_manager.parse_imdb_from_path(scan_path):
try:
tv_processor.process_series(scan_path)
except Exception as e:
_log("ERROR", f"Failed processing TV series {scan_path}: {e}")
else:
# Full series processing - scan subdirectories
for item in scan_path.iterdir():
if (item.is_dir() and
not item.name.lower().startswith('season') and
not re.match(r'^season\s+\d+$', item.name, re.IGNORECASE) and
nfo_manager.parse_imdb_from_path(item)):
try:
tv_processor.process_series(item)
except Exception as e:
_log("ERROR", f"Failed processing TV series {item}: {e}")
if scan_type in ["both", "movies"] and scan_path in config.movie_paths:
_log("INFO", f"Scanning movies in: {scan_path}")