summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-12-06 18:31:57 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-12-06 18:31:57 +0000
commitdccbd89e9f6568d77fc7672002d9bd7276ebb4e1 (patch)
tree566d83055fb45bf46fbc7e4e890abf6278b86ea0 /contrib
parentfe7a6b75f6a50f33cdc405957d9667087ebf9e63 (diff)
downloadampache-dccbd89e9f6568d77fc7672002d9bd7276ebb4e1.tar.gz
ampache-dccbd89e9f6568d77fc7672002d9bd7276ebb4e1.tar.bz2
ampache-dccbd89e9f6568d77fc7672002d9bd7276ebb4e1.zip
readme and fixed typo
Diffstat (limited to 'contrib')
-rw-r--r--contrib/plugins/Last.FM/Lastfm.patch8
-rw-r--r--contrib/plugins/Last.FM/README14
2 files changed, 18 insertions, 4 deletions
diff --git a/contrib/plugins/Last.FM/Lastfm.patch b/contrib/plugins/Last.FM/Lastfm.patch
index 78dac19b..37fa0e0f 100644
--- a/contrib/plugins/Last.FM/Lastfm.patch
+++ b/contrib/plugins/Last.FM/Lastfm.patch
@@ -232,19 +232,19 @@ diff -Nuar --exclude=.svn trunk/lib/class/user.class.php ampache/lib/class/user.
+ /* Record this play to LastFM */
+ if ($this->prefs['lastfm_user'] AND $this->prefs['lastfm_pass']) {
-+ $song->format_song();
++ $song_info->format_song();
+ $lastfm = new scrobbler($this->prefs['lastfm_user'],$this->prefs['lastfm_pass']);
+ /* Attempt handshake */
+ if ($lastfm->handshake()) {
+ if (!$lastfm->queue_track($song_info->f_artist_full,$song_info->f_album_full,$song_info->title,time(),$song_info->time)) {
-+ debug_event('LastFM','Error: Queue Failed' . $lastfm->error_msg,'3');
++ debug_event('LastFM','Error: Queue Failed: ' . $lastfm->error_msg,'3');
+ }
+ if (!$lastfm->submit_tracks()) {
-+ debug_event('LastFM','Error Submit Failed' . $lastfm->error_msg,'3');
++ debug_event('LastFM','Error Submit Failed: ' . $lastfm->error_msg,'3');
+ }
+ } // if handshake
+ else {
-+ debug_event('LastFM','Error: Handshake failed with LastFM' . $lastfm->error_msg,'3');
++ debug_event('LastFM','Error: Handshake failed with LastFM: ' . $lastfm->error_msg,'3');
+ }
+ } // record to LastFM
+ else {
diff --git a/contrib/plugins/Last.FM/README b/contrib/plugins/Last.FM/README
new file mode 100644
index 00000000..67099e57
--- /dev/null
+++ b/contrib/plugins/Last.FM/README
@@ -0,0 +1,14 @@
+This is a crappy readme for the LAST.FM plugin
+
+Known Issues
+* Last.FM fails to insert on 'unknown' artists as in, artists it doesn't think are real
+* Last.FM fails to insert due to timeouts (Their site fails to respond)
+* Last.FM doesn't accept non-us chars correctly (UTF-8 seems to 'look funny' on their website)
+
+Installing
+1) Put the .plugin.php file in /modules/plugins
+2) Run patch -p1 < Lastfm.patch from the root of your Ampache dir
+3) In the interface go to Admin -> Modules and activate the Last.FM plugin
+4) Set your Username/Pass in Preferences -> Options
+
+Enjoy!