Skip to content

Commit

Permalink
fix(analyzer): backslash non utf-8 data when probing replaygain (#2931)
Browse files Browse the repository at this point in the history
### Description

Fixes #2910
  • Loading branch information
jooola committed Feb 2, 2024
1 parent 3e05748 commit 29f73e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion analyzer/libretime_analyzer/pipeline/_ffmpeg.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 29f73e0

Please sign in to comment.