Add review family when review representation is added

Ensures that instances with added review representations are properly
tagged with the "review" family for downstream processing.
This commit is contained in:
jakubjezek001 2025-12-18 10:05:35 +01:00
parent 55eb4cccbe
commit ca59ad7bf7
No known key found for this signature in database
GPG key ID: 06DBD609ADF27FD9

View file

@ -279,6 +279,12 @@ class ExtractOIIOTranscode(publish.Extractor):
if "delete" in tags and "thumbnail" not in tags:
instance.data["representations"].remove(repre)
if (
added_review
and "review" not in instance.data["families"]
):
instance.data["families"].append("review")
instance.data["representations"].extend(new_representations)
def _rename_in_representation(self, new_repre, files_to_convert,