--- a/playlist.php Fri Aug 15 23:22:30 2008 -0400
+++ b/playlist.php Fri Aug 15 23:31:37 2008 -0400
@@ -66,7 +66,7 @@
function artwork_request_handler($httpd, $socket)
{
- global $homedir;
+ global $amarok_home;
if ( !isset($_GET['artist']) || !isset($_GET['album']) )
{
@@ -75,7 +75,7 @@
}
// get hash
$artwork_hash = md5( strtolower(trim($_GET['artist'])) . strtolower(trim($_GET['album'])) );
- $artwork_dir = "$homedir/.kde/share/apps/amarok/albumcovers";
+ $artwork_dir = "$amarok_home/albumcovers";
if ( file_exists("$artwork_dir/large/$artwork_hash") )
{
// artwork file found - scale and convert to PNG