Skip to content

Commit 04c19a5

Browse files
committed
Show [N/M] filename counter in transcription output
1 parent 72199fc commit 04c19a5

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

extract_caption.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -491,9 +491,11 @@ def main() -> None:
491491
print(f" {Path(v['path']).name} -> {Path(v['caption']).name}")
492492
return
493493

494-
print(f"Found {len(pending)} video(s) to caption.\n")
494+
total = len(pending)
495+
print(f"Found {total} video(s) to caption.\n")
495496
ok = 0
496-
for key, vpath in pending:
497+
for i, (key, vpath) in enumerate(pending, 1):
498+
print(f"[{i}/{total}] {Path(vpath).name}")
497499
if process_video(Path(vpath), manifest, key):
498500
ok += 1
499501
save_manifest(manifest)

0 commit comments

Comments
 (0)