From 29f73e0dcb1fd668a79a2ffedc33e16172277376 Mon Sep 17 00:00:00 2001 From: Jonas L Date: Fri, 2 Feb 2024 20:44:15 +0100 Subject: [PATCH] fix(analyzer): backslash non utf-8 data when probing replaygain (#2931) ### Description Fixes #2910 --- analyzer/libretime_analyzer/pipeline/_ffmpeg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/analyzer/libretime_analyzer/pipeline/_ffmpeg.py b/analyzer/libretime_analyzer/pipeline/_ffmpeg.py index c8d9f7df0..b9f5471c6 100644 --- a/analyzer/libretime_analyzer/pipeline/_ffmpeg.py +++ b/analyzer/libretime_analyzer/pipeline/_ffmpeg.py @@ -36,7 +36,7 @@ def probe_replaygain(filepath: Path) -> Optional[float]: """ Probe replaygain will probe the given audio file and return the replaygain if available. """ - cmd = _ffprobe("-i", filepath) + cmd = _ffprobe("-i", filepath, errors="backslashreplace") track_gain_match = _PROBE_REPLAYGAIN_RE.search(cmd.stderr)