diff options
-rw-r--r-- | lib/class/stream.class.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/class/stream.class.php b/lib/class/stream.class.php index a2bc181a..e1664fb4 100644 --- a/lib/class/stream.class.php +++ b/lib/class/stream.class.php @@ -668,7 +668,13 @@ class Stream { $offset = ( $start*$song->time )/( $song->size ); $offsetmm = floor($offset/60); $offsetss = floor($offset-$offsetmm*60); - $offset = sprintf("%02d.%02d",$offsetmm,$offsetss); + // If flac then format it slightly differently + if ($song->type == 'flac') { + $offset = sprintf("%02d:%02d",$offsetmm,$offsetss); + } + else { + $offset = sprintf("%02d.%02d",$offsetmm,$offsetss); + } /* Get EOF */ $eofmm = floor($song->time/60); |