This commit is contained in:
@@ -1 +1 @@
|
|||||||
2.1.1-preserve-long-nfo-fix-fallback
|
2.1.2-preserve-long-nfo-fix-scan-logic
|
||||||
+12
-2
@@ -2059,9 +2059,19 @@ async def manual_scan(background_tasks: BackgroundTasks, path: Optional[str] = N
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
_log("ERROR", f"Failed processing episode {scan_path}: {e}")
|
_log("ERROR", f"Failed processing episode {scan_path}: {e}")
|
||||||
else:
|
else:
|
||||||
# Full series processing
|
# 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():
|
for item in scan_path.iterdir():
|
||||||
if item.is_dir() and nfo_manager.parse_imdb_from_path(item):
|
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:
|
try:
|
||||||
tv_processor.process_series(item)
|
tv_processor.process_series(item)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|||||||
Reference in New Issue
Block a user