summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-03-30 19:16:11 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-03-30 19:16:11 +0000
commit9dc66c6949d9b1ad8e0a7ea2da3941696f9aeb92 (patch)
tree92525aae7a16d701c31ac33abf9491af6ad162d4 /lib
parent828b2288207a9f24ea264d0456d7ff951b931fe3 (diff)
downloadampache-9dc66c6949d9b1ad8e0a7ea2da3941696f9aeb92.tar.gz
ampache-9dc66c6949d9b1ad8e0a7ea2da3941696f9aeb92.tar.bz2
ampache-9dc66c6949d9b1ad8e0a7ea2da3941696f9aeb92.zip
tweaked mime detection
Diffstat (limited to 'lib')
-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;