diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-01-01 10:31:15 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-01-01 10:31:15 +0000 |
commit | 8b81ef709679d69ce47440fd48c76a0e3f6f903b (patch) | |
tree | 868a85571ff308b230f254d67b684b23533359a2 /albums.php | |
parent | c7532033e56da3c007dba6144ca6c8884fac2781 (diff) | |
download | ampache-8b81ef709679d69ce47440fd48c76a0e3f6f903b.tar.gz ampache-8b81ef709679d69ce47440fd48c76a0e3f6f903b.tar.bz2 ampache-8b81ef709679d69ce47440fd48c76a0e3f6f903b.zip |
I am pretty sure the find art should work correctly now, it doesnt do id3tags yet due to some... complications.. it does however now read the folder images which is a new feature.
Diffstat (limited to 'albums.php')
-rw-r--r-- | albums.php | 16 |
1 files changed, 13 insertions, 3 deletions
@@ -109,13 +109,23 @@ switch ($action) { $options['album_name'] = $album_name; $options['keyword'] = $artist . " " . $album_name; $options['url'] = $_REQUEST['cover']; + // HACK that makes baby jesus cry... + $options['skip_id3'] = true; // Attempt to find the art. - $images = $album->find_art($options); - + $images = $album->find_art($options,'6'); + + // 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'] = ''; + } + } + // Store the results for further use $_SESSION['form']['images'] = $images; - + if (count($images)) { require_once(conf('prefix') . '/templates/show_album_art.inc.php'); } |