koel/app/Services/TranscodingService.php

14 lines
222 B
PHP
Raw Normal View History

2018-08-22 19:13:45 +00:00
<?php
namespace App\Services;
use App\Models\Song;
class TranscodingService
{
2018-08-24 15:27:19 +00:00
public function songShouldBeTranscoded(Song $song): bool
2018-08-22 19:13:45 +00:00
{
return ends_with(mime_content_type($song->path), 'flac');
}
}