fix(analyzer): backslash non utf-8 data when probing replaygain (#2931)
### Description Fixes #2910
This commit is contained in:
parent
3e05748d2d
commit
29f73e0dcb
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue