mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
OP-4643 - fixed renaming files
This commit is contained in:
parent
99d687c9a1
commit
2a7fd01aad
1 changed files with 8 additions and 0 deletions
|
|
@ -96,6 +96,14 @@ class ExtractOIIOTranscode(publish.Extractor):
|
||||||
new_repre["name"] = output_extension
|
new_repre["name"] = output_extension
|
||||||
new_repre["ext"] = output_extension
|
new_repre["ext"] = output_extension
|
||||||
|
|
||||||
|
renamed_files = []
|
||||||
|
_, orig_ext = os.path.splitext(files_to_convert[0])
|
||||||
|
for file_name in files_to_convert:
|
||||||
|
file_name = file_name.replace(orig_ext,
|
||||||
|
"."+output_extension)
|
||||||
|
renamed_files.append(file_name)
|
||||||
|
new_repre["files"] = renamed_files
|
||||||
|
|
||||||
target_colorspace = output_def["colorspace"]
|
target_colorspace = output_def["colorspace"]
|
||||||
if not target_colorspace:
|
if not target_colorspace:
|
||||||
raise RuntimeError("Target colorspace must be set")
|
raise RuntimeError("Target colorspace must be set")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue