Ruff: Fixed UP022

This commit is contained in:
2026-09-17 14:13:04 -07:00
parent 5d481e2960
commit f3547c8bc5
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -1,14 +1,13 @@
import json
import os.path
import subprocess
from subprocess import PIPE
FFPROBE = "ffprobe"
def ffprobe(path):
arguments = [FFPROBE, "-of", "json", "-show_format", "-show_streams", path]
process = subprocess.run(arguments, stdin=None, stdout=PIPE, stderr=PIPE, check=True)
process = subprocess.run(arguments, check=True, capture_output=True)
if process.returncode == 0:
output_str = process.stdout.decode("utf-8")
return json.loads(output_str)