Player & duration fix 1

This commit is contained in:
magnolia-fan
2011-04-11 20:49:25 +04:00
parent 4d2c32ec8e
commit 42f3e6e5ca
5 changed files with 10 additions and 7 deletions
+2 -2
View File
@@ -52,7 +52,7 @@ function formatTime(sec) {
return m +':'+ (s < 10 ? '0' : '') +s;
}
function playTrack(artist, track, id) {
$(audio).attr('src', '/listen/'+ id +'/');
$(audio).attr('src', '/listen/'+ id +'.mp3');
$('#player .track-title').html(artist +' &mdash; '+ track);
$('#player .time-played').html('0:00');
$('#player .time-left').html('0:00');
@@ -79,4 +79,4 @@ function addToPlaylist(artist, track, length, id) {
if ($('#playlist ul li').length == 1) {
playTrack(artist, track, id);
}
}
}