mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-26 01:27:07 +00:00
Small change to get output from ffprobe with Python 3.x
This commit is contained in:
parent
e4b6020f63
commit
8d9023af80
1 changed files with 2 additions and 2 deletions
|
@ -179,9 +179,9 @@ class VideoFileParser:
|
|||
if PY3:
|
||||
command = [parser] + commandArgs + [inputFile]
|
||||
completedProcess = subprocess.run(
|
||||
command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, encoding="utf-8"
|
||||
command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True
|
||||
)
|
||||
if completedProcess.returncode != 0:
|
||||
if completedProcess.returncode:
|
||||
raise IOError(
|
||||
"Error occurred during execution - " + completedProcess.stderr
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue