summaryrefslogtreecommitdiffstats
path: root/lib/class/user.class.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-12-06 18:22:18 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-12-06 18:22:18 +0000
commitfe7a6b75f6a50f33cdc405957d9667087ebf9e63 (patch)
tree1e88ebbceff28db3cd90645d2e4ddd83a37ab928 /lib/class/user.class.php
parentcaaf0f6e12a52bed50bde91644dff565b90e4325 (diff)
downloadampache-fe7a6b75f6a50f33cdc405957d9667087ebf9e63.tar.gz
ampache-fe7a6b75f6a50f33cdc405957d9667087ebf9e63.tar.bz2
ampache-fe7a6b75f6a50f33cdc405957d9667087ebf9e63.zip
arg stupid plugins
Diffstat (limited to 'lib/class/user.class.php')
-rw-r--r--lib/class/user.class.php22
1 files changed, 1 insertions, 21 deletions
diff --git a/lib/class/user.class.php b/lib/class/user.class.php
index 46ebf4e4..fefca81f 100644
--- a/lib/class/user.class.php
+++ b/lib/class/user.class.php
@@ -433,6 +433,7 @@ class User {
$song_info = new Song($song_id);
//FIXME:: User uid reference
$user = $this->uid;
+
if (!$song_info->file) { return false; }
$stats = new Stats();
@@ -441,27 +442,6 @@ class User {
$stats->insert('artist',$song_info->artist,$user);
$stats->insert('genre',$song_info->genre,$user);
- /* Record this play to LastFM */
- if ($this->prefs['lastfm_user'] AND $this->prefs['lastfm_pass']) {
- $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');
- }
- if (!$lastfm->submit_tracks()) {
- 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');
- }
- } // record to LastFM
- else {
- debug_event('plugins','Error: No Prefs','3');
- }
-
} // update_stats
/**