mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
Split on any of the characters as intended, instead of on literal x-
This commit is contained in:
parent
537dac6033
commit
ec9c6c510a
1 changed files with 1 additions and 1 deletions
|
|
@ -1053,7 +1053,7 @@ def convert_colorspace(
|
|||
first_input_path = input_path
|
||||
if frames:
|
||||
assert isinstance(frames, str) # for type hints
|
||||
first_frame = int(frames.split(" x-,")[0])
|
||||
first_frame = int(re.split("[ x-]", frames, 1)[0])
|
||||
first_frame = str(first_frame).zfill(frame_padding or 0)
|
||||
for token in ["#", "%d"]:
|
||||
first_input_path = first_input_path.replace(token, first_frame)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue