summaryrefslogtreecommitdiffstats
path: root/play
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-08-09 14:34:06 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-08-09 14:34:06 +0000
commitab9aec092c66f090eb77ac6a53e37a02a9aecbbf (patch)
treedef7403f8336574be54346bfb81c0c8127f60a62 /play
parent699a85cb82f5b8cec9439a29c2f3312ae84b77e0 (diff)
downloadampache-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.php3
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');
}