Fix edge case for ExtractOIIOTranscode

This commit is contained in:
Toke Stuart Jepsen 2024-01-23 17:37:39 +00:00
parent 26409d4fec
commit f59e403a3d

View file

@ -189,6 +189,13 @@ class ExtractOIIOTranscode(publish.Extractor):
if len(new_repre["files"]) == 1:
new_repre["files"] = new_repre["files"][0]
# If the source representation has "review" tag, but its not
# part of the output defintion tags, then both the
# representations will be transcoded in ExtractReview and
# their outputs will clash in integration.
if not added_review and "review" in repre.get("tags", []):
added_review = True
new_representations.append(new_repre)
added_representations = True