Merge pull request #2531 from alexbelgium/copilot/fix-sonarr-runtime-error-again

Sonarr: symlink system ffprobe to where Sonarr expects it
This commit is contained in:
Alexandre
2026-02-25 17:01:32 +01:00
committed by GitHub
3 changed files with 12 additions and 1 deletions

View File

@@ -1,4 +1,7 @@
## 4.0.16.2946-3 (2026-02-25)
- Symlink system ffprobe to /app/sonarr/bin/ where Sonarr expects it (fixes https://github.com/alexbelgium/hassio-addons/issues/2451)
## 4.0.16.2946-2 (2026-02-06)
- Add ffmpeg to provide ffprobe for runtime detection (fixes https://github.com/alexbelgium/hassio-addons/issues/2451)

View File

@@ -110,4 +110,4 @@ schema:
slug: sonarr_nas
udev: true
url: https://github.com/alexbelgium/hassio-addons/tree/master/sonarr
version: "4.0.16.2946-2"
version: "4.0.16.2946-3"

View File

@@ -25,3 +25,11 @@ fi
if [ -d /config/addons_config ]; then
rm -rf /config/addons_config
fi
# Sonarr v4 looks for ffprobe in its own binary directory (/app/sonarr/bin/)
# via GlobalFFOptions.Configure(options => options.BinaryFolder = AppDomain.CurrentDomain.BaseDirectory)
# Symlink the system-installed ffprobe there so Sonarr can find a working copy
if [ -f /usr/bin/ffprobe ] && [ -d /app/sonarr/bin ]; then
ln -sf /usr/bin/ffprobe /app/sonarr/bin/ffprobe
echo "Symlinked /usr/bin/ffprobe to /app/sonarr/bin/ffprobe"
fi