mirror of
https://github.com/koel/koel
synced 2024-12-23 02:53:20 +00:00
20 lines
340 B
PHP
20 lines
340 B
PHP
<?php
|
|
|
|
namespace App\Services;
|
|
|
|
use App\Models\Song;
|
|
|
|
class TranscodingService
|
|
{
|
|
/**
|
|
* Determine if a song should be transcoded.
|
|
*
|
|
* @param Song $song
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function songShouldBeTranscoded(Song $song)
|
|
{
|
|
return ends_with(mime_content_type($song->path), 'flac');
|
|
}
|
|
}
|