diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-08-09 14:34:06 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-08-09 14:34:06 +0000 |
commit | ab9aec092c66f090eb77ac6a53e37a02a9aecbbf (patch) | |
tree | def7403f8336574be54346bfb81c0c8127f60a62 /play | |
parent | 699a85cb82f5b8cec9439a29c2f3312ae84b77e0 (diff) | |
download | ampache-ab9aec092c66f090eb77ac6a53e37a02a9aecbbf.tar.gz ampache-ab9aec092c66f090eb77ac6a53e37a02a9aecbbf.tar.bz2 ampache-ab9aec092c66f090eb77ac6a53e37a02a9aecbbf.zip |
tweaked get_newest to operate a little different, tweaked lastfm (currently broken)
Diffstat (limited to 'play')
-rw-r--r-- | play/index.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/play/index.php b/play/index.php index 778dc043..10ab8208 100644 --- a/play/index.php +++ b/play/index.php @@ -308,6 +308,7 @@ while (!feof($fp) && (connection_status() == 0)) { // Make sure that a good chunk of the song has been played if ($bytesStreamed > $minBytesStreamed) { debug_event('Stats','Registering stats for ' . $song->title,'5'); + $user->update_stats($song->id); /* If this is a voting tmp playlist remove the entry */ if (is_object($tmp_playlist)) { @@ -315,7 +316,7 @@ if ($bytesStreamed > $minBytesStreamed) { $tmp_playlist->delete_track($song_id); } } -} +} // if enough bytes are streamed else { debug_event('stream',$bytesStreamed .' of ' . $song->size . ' streamed, less than ' . $minBytesStreamed . ' not collecting stats','5'); } |