Fixes source metadata key in OTIO review extraction

The change corrects the metadata key prefixes used
when extracting source width and height
information for OTIO reviewable representations.

It removes the trailing period from the prefixes
"ayon.source." and "openpype.source." to ensure
accurate retrieval of resolution data. This resolves
an issue where incorrect or missing resolution
information could lead to squished reviewables.
This commit is contained in:
Jakub Jezek 2025-10-17 16:06:37 +02:00
parent 2cfb52ce02
commit 4a1755c7c5
No known key found for this signature in database
GPG key ID: 06DBD609ADF27FD9

View file

@ -130,7 +130,7 @@ class ExtractOTIOReview(
# NOTE it looks like it is set only in hiero integration
res_data = {"width": self.to_width, "height": self.to_height}
for key in res_data:
for meta_prefix in ("ayon.source.", "openpype.source."):
for meta_prefix in ("ayon.source", "openpype.source"):
meta_key = f"{meta_prefix}.{key}"
value = media_metadata.get(meta_key)
if value is not None: