Skip to content

Commit 2c27dd5

Browse files
committed
Fixed bug (audio interpreted as video)
Fixed bug when audio with cover art / album art interpreted as video
1 parent a64d57c commit 2c27dd5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/PHPVideoToolkit/MediaParser.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,10 @@ public function getFileType($file_path, $read_from_cache=true)
228228
{
229229
$data = 'image';
230230
}
231+
elseif(strpos(Mime::get($file_path), 'audio/') !== false)
232+
{
233+
$data = 'audio';
234+
}
231235
else
232236
{
233237
$data = 'video';

0 commit comments

Comments
 (0)