koel/app/Services/TranscodingService.php

14 lines
222 B
PHP
Raw Normal View History

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