From d4d592a23375770fc83bcbebc8f87de01eed9ac1 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Mon, 2 Nov 2020 19:15:26 +0100 Subject: [PATCH] pyblish plugins pass logger object to ffprobe_streams function --- pype/plugins/global/publish/extract_review.py | 4 +++- pype/plugins/global/publish/extract_review_slate.py | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/pype/plugins/global/publish/extract_review.py b/pype/plugins/global/publish/extract_review.py index 70f2db9283..60fcead624 100644 --- a/pype/plugins/global/publish/extract_review.py +++ b/pype/plugins/global/publish/extract_review.py @@ -633,7 +633,9 @@ class ExtractReview(pyblish.api.InstancePlugin): # NOTE Skipped using instance's resolution full_input_path_single_file = temp_data["full_input_path_single_file"] - input_data = pype.lib.ffprobe_streams(full_input_path_single_file)[0] + input_data = pype.lib.ffprobe_streams( + full_input_path_single_file, self.log + )[0] input_width = int(input_data["width"]) input_height = int(input_data["height"]) diff --git a/pype/plugins/global/publish/extract_review_slate.py b/pype/plugins/global/publish/extract_review_slate.py index e549815187..5cf632406c 100644 --- a/pype/plugins/global/publish/extract_review_slate.py +++ b/pype/plugins/global/publish/extract_review_slate.py @@ -26,7 +26,7 @@ class ExtractReviewSlate(pype.api.Extractor): slate_path = inst_data.get("slateFrame") ffmpeg_path = pype.lib.get_ffmpeg_tool_path("ffmpeg") - slate_stream = pype.lib.ffprobe_streams(slate_path)[0] + slate_stream = pype.lib.ffprobe_streams(slate_path, self.log)[0] slate_width = slate_stream["width"] slate_height = slate_stream["height"] @@ -299,7 +299,7 @@ class ExtractReviewSlate(pype.api.Extractor): try: # Get information about input file via ffprobe tool - streams = pype.lib.ffprobe_streams(full_input_path) + streams = pype.lib.ffprobe_streams(full_input_path, self.log) except Exception: self.log.warning( "Could not get codec data from input.",