mirror of
https://github.com/koel/koel
synced 2024-11-28 06:50:27 +00:00
279f23d4e1
Co-authored-by: CoUsT <gitea@coust.cloud>
13 lines
265 B
PHP
13 lines
265 B
PHP
<?php
|
|
|
|
namespace App\Services;
|
|
|
|
use App\Models\Song;
|
|
|
|
class TranscodingService
|
|
{
|
|
public function songShouldBeTranscoded(Song $song): bool
|
|
{
|
|
return ends_with(mime_content_type($song->path), 'flac') && config('koel.streaming.transcode_flac');
|
|
}
|
|
}
|