summaryrefslogtreecommitdiffstats
path: root/albumart.php
diff options
context:
space:
mode:
Diffstat (limited to 'albumart.php')
-rw-r--r--albumart.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/albumart.php b/albumart.php
index 7d29decb..9d21b411 100644
--- a/albumart.php
+++ b/albumart.php
@@ -66,7 +66,8 @@ switch ($_REQUEST['type']) {
} // else no image
// Print the album art
- $extension = substr($mime,strlen($mime)-3,3);
+ $extension= explode("/",$mime);
+ $extension = $data['1'];
header("Content-type: $mime");
header("Content-Disposition: filename=" . $album->name . "." . $extension);
if (!$_REQUEST['thumb']) {