diff options
author | Paul Arthur <paul.arthur@flowerysong.com> | 2012-09-20 12:08:37 -0400 |
---|---|---|
committer | Paul Arthur <paul.arthur@flowerysong.com> | 2012-09-20 12:13:51 -0400 |
commit | 2f8656a20c7ba0eb523ecd8987e343f819e22f5a (patch) | |
tree | f3428f0ce21585407aa448c9fd83174c82f38b01 | |
parent | 8a06c9a80cdd679ca86f01112b7379328ee50b6f (diff) | |
download | ampache-2f8656a20c7ba0eb523ecd8987e343f819e22f5a.tar.gz ampache-2f8656a20c7ba0eb523ecd8987e343f819e22f5a.tar.bz2 ampache-2f8656a20c7ba0eb523ecd8987e343f819e22f5a.zip |
FS#202 - Stats not registered on some songs
Removed check from User->update_stats. It looks iffy, is reported to be
broken, and everything that calls it has an independent check.
-rw-r--r-- | lib/class/user.class.php | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/class/user.class.php b/lib/class/user.class.php index 09000600..5fb2e127 100644 --- a/lib/class/user.class.php +++ b/lib/class/user.class.php @@ -575,14 +575,6 @@ class User extends database_object { if (!strlen($song_info->file)) { return false; } - // Make sure we've played a significant chunk of the song - $data = Stats::get_last_song($user); - $last_song = new Song($data['object_id']); - if ($data['date'] + ($song_info->time / 2) >= time()) { - debug_event('Stats','Not collecting stats less than 50% of song has elapsed','3'); - return false; - } - $this->set_preferences(); foreach (Plugin::get_plugins('save_songplay') as $plugin_name) { |