diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-12-03 10:27:09 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-12-03 10:27:09 +0000 |
commit | 52d3da75d2c8624191d484899846af00d3689634 (patch) | |
tree | be660faf9c8f8183f02f890f79b5319c5443fcda | |
parent | 99baf7582de072847cf6307d5b291168520554b1 (diff) | |
download | ampache-52d3da75d2c8624191d484899846af00d3689634.tar.gz ampache-52d3da75d2c8624191d484899846af00d3689634.tar.bz2 ampache-52d3da75d2c8624191d484899846af00d3689634.zip |
fixed album art dump bin script... cant sleep damnit
-rwxr-xr-x | docs/CHANGELOG | 1 | ||||
-rw-r--r-- | lib/class/catalog.class.php | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/docs/CHANGELOG b/docs/CHANGELOG index ae26e35d..d94002ec 100755 --- a/docs/CHANGELOG +++ b/docs/CHANGELOG @@ -4,6 +4,7 @@ -------------------------------------------------------------------------- v.3.4-Alpha4 + - Fixed Album Art dump bin script - Added paging to the Playlist Song view - Fixed error on catalog Update All - Fixed Public registration page, and simplified logic diff --git a/lib/class/catalog.class.php b/lib/class/catalog.class.php index a0cb2ca7..e7942444 100644 --- a/lib/class/catalog.class.php +++ b/lib/class/catalog.class.php @@ -823,8 +823,8 @@ class Catalog { if (!$preferred_filename || strstr($preferred_filename,"%")) { $preferred_filename = "folder.$extension"; } $file = "$dir/$preferred_filename"; - if ($file_handle = @fopen($file,"w")) { - if (fwrite($file_handle, $image->art)) { + if ($file_handle = fopen($file,"w")) { + if (fwrite($file_handle, $image['0']['raw'])) { $i++; if (!($i%100)) { echo "Written: $i. . .\n"; |