From d8dc726fb7afd339d15f8ae97977f927c025130d Mon Sep 17 00:00:00 2001 From: Olivier 'reivilibre Date: Mon, 21 Nov 2022 16:05:51 +0000 Subject: [PATCH] Use file: in ffprobe as well --- rei_toolbox/dubstrip.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rei_toolbox/dubstrip.py b/rei_toolbox/dubstrip.py index 7e129a3..b0b20e9 100644 --- a/rei_toolbox/dubstrip.py +++ b/rei_toolbox/dubstrip.py @@ -9,7 +9,7 @@ from typing import Any, Dict, List, Union def probe_metadata(file: Path) -> Dict[str, Any]: output = subprocess.check_output( - ("ffprobe", "-show_streams", "-print_format", "json", file) + ("ffprobe", "-show_streams", "-print_format", "json", f"file:{file}") ) return json.loads(output)