Skip to content

Commit

Permalink
bugfix: Patch writer - handle filenames which are only numeric
Browse files Browse the repository at this point in the history
  • Loading branch information
torzdf committed Jan 10, 2024
1 parent 2a38451 commit b25f484
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/convert/writer/patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ def _get_new_filename(self, filename: str, face_index: int) -> str:
"""
face_idx = str(face_index).rjust(2, "0")
fname, ext = os.path.splitext(filename)
fname = os.path.basename(fname)

split_fname = fname.rsplit("_", 1)
if split_fname[-1].isdigit():
i_frame_no = (int(split_fname[-1]) +
Expand Down

0 comments on commit b25f484

Please sign in to comment.