Hiero: fix pype.api.subprocess is obsolete api call

This commit is contained in:
Jakub Jezek 2021-03-30 15:45:54 +02:00
parent 88a9c11773
commit 6e8c574509
No known key found for this signature in database
GPG key ID: C4B96E101D2A47F3

View file

@ -132,7 +132,7 @@ class ExtractReviewPreparation(pype.api.Extractor):
).format(**locals())
self.log.debug("ffprob_cmd: {}".format(ffprob_cmd))
audio_check_output = pype.api.subprocess(ffprob_cmd)
audio_check_output = pype.api.run_subprocess(ffprob_cmd)
self.log.debug(
"audio_check_output: {}".format(audio_check_output))
@ -167,7 +167,7 @@ class ExtractReviewPreparation(pype.api.Extractor):
# try to get video native resolution data
try:
resolution_output = pype.api.subprocess((
resolution_output = pype.api.run_subprocess((
"\"{ffprobe_path}\" -i \"{full_input_path}\""
" -v error "
"-select_streams v:0 -show_entries "
@ -280,7 +280,7 @@ class ExtractReviewPreparation(pype.api.Extractor):
# run subprocess
self.log.debug("Executing: {}".format(subprcs_cmd))
output = pype.api.subprocess(subprcs_cmd)
output = pype.api.run_subprocess(subprcs_cmd)
self.log.debug("Output: {}".format(output))
repre_new = {