diff options
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'); } |