OP-4643 - fix no tags in repre

This commit is contained in:
Petr Kalis 2023-01-27 13:18:33 +01:00
parent 97a2014c12
commit 3d2f431936

View file

@ -142,6 +142,8 @@ class ExtractOIIOTranscode(publish.Extractor):
# Add additional tags from output definition to representation
for tag in output_def["tags"]:
if not new_repre.get("tags"):
new_repre["tags"] = []
if tag not in new_repre["tags"]:
new_repre["tags"].append(tag)