mirror of
https://github.com/koel/koel
synced 2024-11-10 06:34:14 +00:00
fix: attempt to transcode when ffmpeg is not configured throws error
This commit is contained in:
parent
3c8f59e77f
commit
a23e856a71
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue