fix: attempt to transcode when ffmpeg is not configured throws error

This commit is contained in:
Phan An 2024-03-15 13:25:01 +01:00
parent 3c8f59e77f
commit a23e856a71

View file

@ -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