summaryrefslogtreecommitdiffstats
path: root/play
diff options
context:
space:
mode:
Diffstat (limited to 'play')
-rw-r--r--play/index.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/play/index.php b/play/index.php
index 10ab8208..15e06041 100644
--- a/play/index.php
+++ b/play/index.php
@@ -315,14 +315,16 @@ if ($bytesStreamed > $minBytesStreamed) {
if ($tmp_playlist->type == 'vote') {
$tmp_playlist->delete_track($song_id);
}
- }
+ } // if tmp_playlist
+
+ /* Set the Song as Played if it isn't already */
+ $song->set_played();
+
} // if enough bytes are streamed
else {
debug_event('stream',$bytesStreamed .' of ' . $song->size . ' streamed, less than ' . $minBytesStreamed . ' not collecting stats','5');
}
-/* Set the Song as Played if it isn't already */
-$song->set_played();
/* Clean up any open ends */
if ($GLOBALS['user']->prefs['play_type'] == 'downsample' || !$song->native_stream()) {