diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-05-25 05:49:22 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-05-25 05:49:22 +0000 |
commit | 79316acb81fe9215b09ec41918b9a402560e7bef (patch) | |
tree | 9a71adc5d6dd297e3f39976796e380be10f19a4e /albums.php | |
parent | 035b273ff529a34e1d2cb52bd61c653c6bff8250 (diff) | |
download | ampache-79316acb81fe9215b09ec41918b9a402560e7bef.tar.gz ampache-79316acb81fe9215b09ec41918b9a402560e7bef.tar.bz2 ampache-79316acb81fe9215b09ec41918b9a402560e7bef.zip |
fixed find album art, including a fix from Karl Hungus... seriously I am not making that name up
Diffstat (limited to 'albums.php')
-rw-r--r-- | albums.php | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -109,8 +109,6 @@ switch ($_REQUEST['action']) { $options['artist'] = $artist; $options['album_name'] = $album_name; $options['keyword'] = $artist . " " . $album_name; - // HACK that makes baby jesus cry... - $options['skip_id3'] = true; // Attempt to find the art. $images = $album->find_art($options,'6'); @@ -127,14 +125,13 @@ switch ($_REQUEST['action']) { // We don't want to store raw's in here so we need to strip them out into a seperate array foreach ($images as $index=>$image) { if (isset($image['raw'])) { - //unset($images[$index]); - $images[$index]['raw'] = ''; + unset($images[$index]['raw']); } - } // end foreach + } // end foreach // Store the results for further use $_SESSION['form']['images'] = $images; - require_once(conf('prefix') . '/templates/show_album_art.inc.php'); + require_once Config::get('prefix') . '/templates/show_album_art.inc.php'; } // Else nothing else { @@ -148,7 +145,7 @@ switch ($_REQUEST['action']) { if (isset($_REQUEST['album_name'])) { $albumname = scrub_in($_REQUEST['album_name']); } if (isset($_REQUEST['artist_name'])) { $artistname = scrub_in($_REQUEST['artist_name']); } - require_once(conf('prefix') . '/templates/show_get_albumart.inc.php'); + require_once Config::get('prefix') . '/templates/show_get_albumart.inc.php'; break; case 'select_art': |