From cc5cdde995a85f342f5b349109dd672e39cdf0e3 Mon Sep 17 00:00:00 2001 From: Jennifer Taylor Date: Sun, 23 May 2021 20:37:42 +0000 Subject: [PATCH] Fix frame number display in verbose output. --- bemani/format/afp/render.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bemani/format/afp/render.py b/bemani/format/afp/render.py index 8195c12..a035c7e 100644 --- a/bemani/format/afp/render.py +++ b/bemani/format/afp/render.py @@ -1053,7 +1053,7 @@ class AFPRenderer(VerboseOutput): # Create a new image to render into. time = spf * frameno color = swf.color or Color(0.0, 0.0, 0.0, 0.0) - self.vprint(f"Rendering frame {frameno}/{len(root_clip.source.frames)} ({round(time, 2)}s)") + self.vprint(f"Rendering frame {frameno + 1}/{len(root_clip.source.frames)} ({round(time, 2)}s)") # Go through all registered clips, place all needed tags. changed = self.__process_tags(root_clip) @@ -1072,7 +1072,7 @@ class AFPRenderer(VerboseOutput): frameno += 1 except KeyboardInterrupt: # Allow ctrl-c to end early and render a partial animation. - print(f"WARNING: Interrupted early, will render only {len(frames)}/{len(root_clip.source.frames)} frames of animation!") + print(f"WARNING: Interrupted early, will render only {len(frames) + 1}/{len(root_clip.source.frames)} frames of animation!") # Clean up self.movie = None