From: Andrew Ruthven Date: Tue, 11 Jun 2013 12:43:21 +0000 (+1200) Subject: Increment the timer, fetchCurrent at end of song. X-Git-Url: http://git.etc.gen.nz/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4f46e87e583e25c77d70785adba8d7c179161cf;p=etcx-sounds.git Increment the timer, fetchCurrent at end of song. --- diff --git a/lib/EtcX/Sounds.pm b/lib/EtcX/Sounds.pm index 7c46eee..e2d7a89 100644 --- a/lib/EtcX/Sounds.pm +++ b/lib/EtcX/Sounds.pm @@ -63,8 +63,8 @@ ajax '/current/' => sub { album => $song->album, title => $song->title, artist => $song->artist, - sofar => $time->sofar, - total => $time->total, + sofar => $time->seconds_sofar * 1000, + total => $time->seconds_total * 1000, } } else { return { diff --git a/views/index.tt b/views/index.tt index aab9170..948408a 100644 --- a/views/index.tt +++ b/views/index.tt @@ -8,7 +8,11 @@

[% msg %]

[% END %] -
+
+
+
+ 0:00 of 0:00 +
[% FOR list IN playlist -%] @@ -17,14 +21,85 @@