From a23e856a717f117db2cdbe672a798b9eaeb9faf1 Mon Sep 17 00:00:00 2001 From: Phan An Date: Fri, 15 Mar 2024 13:25:01 +0100 Subject: [PATCH] fix: attempt to transcode when ffmpeg is not configured throws error --- app/Services/Streamer/Streamer.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Services/Streamer/Streamer.php b/app/Services/Streamer/Streamer.php index c67d95a6..0792e337 100644 --- a/app/Services/Streamer/Streamer.php +++ b/app/Services/Streamer/Streamer.php @@ -61,7 +61,8 @@ class Streamer return $this->song->storage === SongStorageTypes::LOCAL && Str::endsWith(File::mimeType($this->song->storage_metadata->getPath()), 'flac') - && config('koel.streaming.transcode_flac'); + && config('koel.streaming.transcode_flac') + && is_executable(config('koel.streaming.ffmpeg_path')); } public function getAdapter(): StreamerAdapter