mirror of
https://gitlab.science.ru.nl/technicie/MarietjeDjango.git
synced 2025-12-09 18:52:23 +01:00
Fix time to play.
This commit is contained in:
@ -180,11 +180,6 @@ function renderQueue(playNextAt, now)
|
||||
var canMoveDown = canDelete && id < queue.length - 1;
|
||||
var artist = song.song.artist.trim() === '' ? '?' : song.song.artist;
|
||||
var title = song.song.title.trim() === '' ? '?' : song.song.title;
|
||||
if (firstSongInQueue === true) {
|
||||
firstSongInQueue = false;
|
||||
} else {
|
||||
timeToPlay += song.song.duration;
|
||||
}
|
||||
|
||||
showTime = showTimeToPlay ? (timeToPlay < 0 ? '' : timeToPlay.secondsToHHMMSS()) : (playNextAt < now ? '' : playNextAt.timestampToHHMMSS())
|
||||
|
||||
@ -199,6 +194,7 @@ function renderQueue(playNextAt, now)
|
||||
+ song.id + ')"></a> <a href="#" class="glyphicon glyphicon-trash'
|
||||
+ (canDelete ? '' : ' invisible') + '" onclick="return cancelSong('
|
||||
+ song.id + ')"></a></td></tr>');
|
||||
timeToPlay += parseInt(song.song.duration);
|
||||
if(playNextAt >= now)
|
||||
{
|
||||
playNextAt += parseInt(song.song.duration);
|
||||
|
||||
Reference in New Issue
Block a user