summaryrefslogtreecommitdiffstats
path: root/lib/class/song.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/class/song.class.php')
-rw-r--r--lib/class/song.class.php3
1 files changed, 1 insertions, 2 deletions
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;