fix(analyzer): backslash non utf-8 data when probing replaygain (#2931)

### Description

Fixes #2910
This commit is contained in:
Jonas L 2024-02-02 20:44:15 +01:00 committed by GitHub
parent 3e05748d2d
commit 29f73e0dcb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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. 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) track_gain_match = _PROBE_REPLAYGAIN_RE.search(cmd.stderr)