mirror of
https://github.com/MrSleeps/jellyfin-scene-search.git
synced 2026-11-18 07:51:27 +00:00
Report caption failures in live progress
This commit is contained in:
@@ -435,6 +435,19 @@ def _caption_queue(
|
||||
caption = captioner.caption(image_path, context_hint=context_hint)
|
||||
except Exception as exc:
|
||||
failed += 1
|
||||
if progress is not None:
|
||||
progress(
|
||||
{
|
||||
"stage": "captioning",
|
||||
"title": str(row["title"]),
|
||||
"timestamp_ms": int(row["timestamp_ms"]),
|
||||
"model": model,
|
||||
"route": route,
|
||||
"frames_total": total_frames or len(routed_rows),
|
||||
"frames_completed": completed_offset + completed,
|
||||
"failed": failed,
|
||||
}
|
||||
)
|
||||
print(
|
||||
f"FAIL {row['title']} @ "
|
||||
f"{format_ts(int(row['timestamp_ms']))}: {exc}"
|
||||
|
||||
Reference in New Issue
Block a user