diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-03-17 04:12:15 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-03-17 04:12:15 +0000 |
commit | e95db50a7403657838033314d45cc578e77ed392 (patch) | |
tree | 1fb15cb5a8ede296b6342a4a2570a3a9bd2034a3 | |
parent | bcc834d7fdabd0f52873a4f7696e065e3cf0f281 (diff) | |
download | ampache-e95db50a7403657838033314d45cc578e77ed392.tar.gz ampache-e95db50a7403657838033314d45cc578e77ed392.tar.bz2 ampache-e95db50a7403657838033314d45cc578e77ed392.zip |
added a few more fields to the xml documents passed by the api and included install doc patch
-rwxr-xr-x | docs/INSTALL | 57 | ||||
-rw-r--r-- | lib/class/xmldata.class.php | 5 |
2 files changed, 40 insertions, 22 deletions
diff --git a/docs/INSTALL b/docs/INSTALL index 7f6432cd..17c83713 100755 --- a/docs/INSTALL +++ b/docs/INSTALL @@ -1,18 +1,15 @@ ------------------------------------------------------------------------------- ----------------- INSTALL - Ampache v.3.4 ---------------------- ------------------------------------------------------------------------------- - + www.ampache.org I'm assuming that you have Apache, PHP and MySQL running when you get to this point. - If you're upgrading from 3.0 to 3.1 please refer to the MIGRATION Notes. - Your database can't be re-used, but fear not the Ampache guys thoughtfully - included scripts to port the data from your old database to the new one. - (They get an extra beer for that one) + Unpack ampache from the tarball and name it ampache. Please insure that you + place ampache in your web path. - If you're upgrading from 3.1 to a newer version refer to the MIGRATION Notes. - There should be an automated update script which will allow you to keep your - current database. + If you are migrating from an older version of Ampache to a newer version of + Ampache please see the MIGRATION notes. If at any time during this install you can't figure out where you have gone wrong check out /test.php for help. @@ -121,10 +118,10 @@ will work. web_path - local_host - local_db - local_username - local_pass + database_hostname + database_name + database_username + database_password It is strongly recommended that you read through the entire Ampache config file as there are many different options that you may want to change. By @@ -206,19 +203,35 @@ Filename pattern Sort Pattern - When these fields are populated a periodic update may be performed by scheduling - the fileupdate.pl program to run at timed intervals. This program will query the - database and attempt to sort and rename your files based on the patterns you have - specified and the tag information in the database. + When these fields are populated a periodic update may be performed by + scheduling the fileupdate.pl program to run at timed intervals. This + program will query the database and attempt to sort and rename your + files based on the patterns you have specified and the tag information + in the database. 3.5 Updating Tags from flagged information - Ampache has a flagging system that allows users and admins to flag songs to be - re-encoded or modify their meta-data inside the website. Jirwin created a - command line script called write_tags.php.inc located in /bin that will attempt - to write out the tags as set, and approved in your Ampache database. This is a - *EXPERIMENTAL* feature and caution should be used as it may destroy your audio - files + Ampache has a flagging system that allows users and admins to flag songs + to be re-encoded or modify their meta-data inside the website. Jirwin + created a command line script called write_tags.php.inc located in /bin + that will attempt to write out the tags as set, and approved in your + Ampache database. + + 3.6 Ampache Wiki + + Ampache.org has a wiki set up at http://trac.ampache.org/wiki/ which is + full of additional information. Such as specific install instructions + for different OS's like Debian, Slackware, FreeBSD and Windows. It + also explains how to use the additional features and options such as + downsampling and transcoding, Access Control Lists, Ampache and XML-RPC, + Ampache + Amarok, Localplay, Democratic Playback and much much more. + http://trac.ampache.org/wiki/ + 3.7 Repositories + + Ampache is now available in rpm, ebuild and deb formats, which covers + most of the major linux distro's so please check your distro's + repositories to see if Ampache is available. This will ease the + installation even more. diff --git a/lib/class/xmldata.class.php b/lib/class/xmldata.class.php index 5c3a6bb4..0337a216 100644 --- a/lib/class/xmldata.class.php +++ b/lib/class/xmldata.class.php @@ -137,6 +137,8 @@ class xmlData { $string .= "<artist id=\"$artist->id\">\n" . "\t<name><![CDATA[$artist->f_full_name]]></name>\n" . + "\t<albums>$artist->albums</albums>\n" . + "\t<songs>$artist->songs</songs>\n" . "</artist>\n"; } // end foreach artists @@ -271,6 +273,8 @@ class xmlData { $song = new Song($song_id); $song->format(); + $art_url = Config::get('web_path') . '/image.php?id=' . $song->album . '&auth=' . scrub_out($_REQUEST['auth']); + $string .= "<song id=\"$song->id\">\n" . "\t<title><![CDATA[$song->title]]></title>\n" . "\t<artist id=\"$song->artist\"><![CDATA[$song->f_artist_full]]></artist>\n" . @@ -280,6 +284,7 @@ class xmlData { "\t<time>$song->time</time>\n" . "\t<url><![CDATA[" . $song->get_url($_REQUEST['auth']) . "]]></url>\n" . "\t<size>$song->size</size>\n" . + "\t<art><![CDATA[" . $art_url . "]]</art>\n" . "</song>\n"; } // end foreach |