summaryrefslogtreecommitdiffstats
path: root/albums.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-05-25 05:49:22 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-05-25 05:49:22 +0000
commit79316acb81fe9215b09ec41918b9a402560e7bef (patch)
tree9a71adc5d6dd297e3f39976796e380be10f19a4e /albums.php
parent035b273ff529a34e1d2cb52bd61c653c6bff8250 (diff)
downloadampache-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.php11
1 files changed, 4 insertions, 7 deletions
diff --git a/albums.php b/albums.php
index b920737e..ac30e78b 100644
--- a/albums.php
+++ b/albums.php
@@ -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':