diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-07-29 07:21:47 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-07-29 07:21:47 +0000 |
commit | 755ab35f6b6b0e78bbff6ca24f3f44008d9a4f71 (patch) | |
tree | bef53f58330458ed620afd0e9ada526355d99ff7 /lib/album.lib.php | |
parent | ee9999a93074c737ffc298c8370ef05a3121cfa0 (diff) | |
download | ampache-755ab35f6b6b0e78bbff6ca24f3f44008d9a4f71.tar.gz ampache-755ab35f6b6b0e78bbff6ca24f3f44008d9a4f71.tar.bz2 ampache-755ab35f6b6b0e78bbff6ca24f3f44008d9a4f71.zip |
fixed the album art gathering, enabled art resizing and saving of said stuff... not sure if saving and retriving is saving any time. tweaked show test config wording
Diffstat (limited to 'lib/album.lib.php')
-rw-r--r-- | lib/album.lib.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/album.lib.php b/lib/album.lib.php index 9b76d9a9..8812cb4c 100644 --- a/lib/album.lib.php +++ b/lib/album.lib.php @@ -38,6 +38,16 @@ function get_image_from_source($data) { return $data['raw']; } + // If it came from the database + if (isset($data['db'])) { + // Repull it + $album_id = Dba::escape($data['db']); + $sql = "SELECT * FROM `album_data` WHERE `album_id`='$album_id'"; + $db_results = Dba::query($sql); + $row = Dba::fetch_assoc($db_results); + return $row['art']; + } // came from the db + // Check to see if it's a URL if (isset($data['url'])) { $snoopy = new Snoopy(); |