github Listenarrs/Listenarr v1.9.2-canary
Canary 1.9.2

pre-releaseone hour ago

Summary

This reworks the PR around the NuGet approach agreed on #791. ffprobe now comes from the Openur.FFprobeStatic package, pinned to 9.0.2.508 (the version Sonarr and Radarr use), and Listenarr no longer downloads it at runtime. The macOS lookup fix this PR originally carried is superseded: the download code it touched is removed, so there is no macOS URL left to get wrong. The package carries a native ffprobe for every platform we ship.

Fixes #777. Refs #791.

The title and description describe the new scope. The branch keeps the earlier commits and adds revert commits on top of them, so the history of the review stays readable and nothing is force-pushed.

Discovery

A new FfprobeBinaryLocator looks for the binary in the application directory first (a RID-specific publish flattens the current platform's asset there: every release artifact and the CI Docker images), then under runtimes/<rid>/native/ (a RID-agnostic build: dotnet run, the tests, the root Dockerfile). It only looks under RIDs that match the running process, so a binary built for another platform is never picked up. On musl Linux the musl build is tried first and the glibc one second, since it is statically linked and also runs there. A distro-built .NET reports a distro RID such as ubuntu.24.04-x64, which the package does not carry, so the portable RID is always tried as well.

Validation and permissions

Whatever is found is run once with -version before it is used. It is accepted only if it exits 0 within 5 seconds and its first line starts with ffprobe version. A truncated file, another platform's build, or something unrelated at that path is reported as unavailable with the reason in the log, instead of failing every probe. The result is cached per path, length, modification time and (on Unix) mode. The mode is in the key because the execute-bit repair changes it without touching the modification time.

A timeout, or a run that never started (no exe...


Automated Canary build

Don't miss a new Listenarr release

NewReleases is sending notifications on new releases.