From 9dc66c6949d9b1ad8e0a7ea2da3941696f9aeb92 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Thu, 30 Mar 2006 19:16:11 +0000 Subject: tweaked mime detection --- lib/class/song.class.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/class/song.class.php b/lib/class/song.class.php index a68a96dc..ff588eef 100644 --- a/lib/class/song.class.php +++ b/lib/class/song.class.php @@ -123,7 +123,7 @@ class Song { preg_match('/\.([A-Za-z0-9]+)$/', $this->file,$results); - $this->type = $results[1]; + $this->type = strtolower(results[1]); switch ($this->type) { case "spx": @@ -131,7 +131,6 @@ class Song { $this->mime = "application/x-ogg"; break; case "wma": - case "WMA": case "asf": $this->mime = "audio/x-ms-wma"; break; -- cgit