From 9c35bb30fac5cdc85d74e4504502a173332ad41e Mon Sep 17 00:00:00 2001 From: Jakub Jezek Date: Thu, 15 Oct 2020 09:53:58 +0200 Subject: [PATCH] feat(hiero): rename collect reviews to review --- .../hiero/publish/{collect_reviews.py => collect_review.py} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename pype/plugins/hiero/publish/{collect_reviews.py => collect_review.py} (98%) diff --git a/pype/plugins/hiero/publish/collect_reviews.py b/pype/plugins/hiero/publish/collect_review.py similarity index 98% rename from pype/plugins/hiero/publish/collect_reviews.py rename to pype/plugins/hiero/publish/collect_review.py index 1d961943c5..e6715d42b0 100644 --- a/pype/plugins/hiero/publish/collect_reviews.py +++ b/pype/plugins/hiero/publish/collect_review.py @@ -4,7 +4,7 @@ import re import clique -class CollectReviews(api.InstancePlugin): +class CollectReview(api.InstancePlugin): """Collect review from tags. Tag is expected to have metadata: @@ -136,7 +136,7 @@ class CollectReviews(api.InstancePlugin): media_duration = instance.data.get("mediaDuration") clip_duration_h = instance.data.get("clipDurationH") - if media_duration > clip_duration_h and not is_sequence: + if media_duration > clip_duration_h: self.log.debug("Media duration higher: {}".format( (media_duration - clip_duration_h))) representation.update({ @@ -144,7 +144,7 @@ class CollectReviews(api.InstancePlugin): "frameEnd": instance.data.get("sourceOutH"), "tags": ["_cut-bigger", "delete"] }) - elif media_duration < clip_duration_h and not is_sequence: + elif media_duration < clip_duration_h: self.log.debug("Media duration higher: {}".format( (media_duration - clip_duration_h))) representation.update({