diff --git a/sonarr/CHANGELOG.md b/sonarr/CHANGELOG.md index 1f24d06ec..bcc547b3c 100644 --- a/sonarr/CHANGELOG.md +++ b/sonarr/CHANGELOG.md @@ -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) diff --git a/sonarr/config.yaml b/sonarr/config.yaml index 6d0af4488..b38ea064c 100644 --- a/sonarr/config.yaml +++ b/sonarr/config.yaml @@ -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" diff --git a/sonarr/rootfs/etc/cont-init.d/20-folders.sh b/sonarr/rootfs/etc/cont-init.d/20-folders.sh index b65e2b5eb..df95b88ae 100755 --- a/sonarr/rootfs/etc/cont-init.d/20-folders.sh +++ b/sonarr/rootfs/etc/cont-init.d/20-folders.sh @@ -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 diff --git a/sonarr/rootfs/etc/cont-init.d/21-ffprobe.sh b/sonarr/rootfs/etc/cont-init.d/21-ffprobe.sh deleted file mode 100755 index a85702477..000000000 --- a/sonarr/rootfs/etc/cont-init.d/21-ffprobe.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/with-contenv bashio -# shellcheck shell=bash -set -e - -# 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