Skip to content

Commit

Permalink
dev(narugo): add frame
Browse files Browse the repository at this point in the history
  • Loading branch information
narugo1992 committed Jan 22, 2024
1 parent cd9829e commit 041f8bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion waifuc/source/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def _iter(self) -> Iterator[ImageItem]:
'video_file': self.video_file,
'time': frame.time,
'index': i,
'filename': f'{filebody}_time_{frame.time}s.png',
'filename': f'{filebody}_time_{frame.time:.3f}s.png',
}
yield ImageItem(frame.to_image(), meta)
_last_frame_time = frame.time

Check warning on line 62 in waifuc/source/video.py

View check run for this annotation

Codecov / codecov/patch

waifuc/source/video.py#L61-L62

Added lines #L61 - L62 were not covered by tests
Expand Down

0 comments on commit 041f8bb

Please sign in to comment.