feat: wire NFO repair scan into app startup lifespan
This commit is contained in:
@@ -220,6 +220,7 @@ async def lifespan(_application: FastAPI):
|
||||
perform_initial_setup,
|
||||
perform_media_scan_if_needed,
|
||||
perform_nfo_scan_if_needed,
|
||||
perform_nfo_repair_scan,
|
||||
)
|
||||
|
||||
try:
|
||||
@@ -273,6 +274,10 @@ async def lifespan(_application: FastAPI):
|
||||
|
||||
# Run media scan only on first run
|
||||
await perform_media_scan_if_needed(background_loader)
|
||||
|
||||
# Scan every series NFO on startup and repair any that are
|
||||
# missing required tags by queuing them for background reload
|
||||
await perform_nfo_repair_scan(background_loader)
|
||||
else:
|
||||
logger.info(
|
||||
"Download service initialization skipped - "
|
||||
|
||||
Reference in New Issue
Block a user