summaryrefslogtreecommitdiffstats
path: root/play/index.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-08-19 06:42:07 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-08-19 06:42:07 +0000
commita1961111ef936899351924bdb97e1b5d2e3687ec (patch)
treeb8e02014854b0399703ef6f642d7e31372ea4ca9 /play/index.php
parent0bbeb6aa28c6eb0e4dcf7d1b7d566575248b5c1a (diff)
downloadampache-a1961111ef936899351924bdb97e1b5d2e3687ec.tar.gz
ampache-a1961111ef936899351924bdb97e1b5d2e3687ec.tar.bz2
ampache-a1961111ef936899351924bdb97e1b5d2e3687ec.zip
fixed album.disk for ogg files and added it to the display
Diffstat (limited to 'play/index.php')
-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()) {