Permalink
Browse files

Fix bug when there is a currently playing song (with no date node)

  • Loading branch information...
1 parent f6b8386 commit 83c5c150a7e5c4be59ce61ba96641c147cb8fc4c @damienalexandre committed Dec 27, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 populartagbydays.js
View
@@ -38,7 +38,7 @@ for (var trackindex in recenttracks)
// There is no date (currently playing tune)
if (recenttracks[trackindex].date == undefined)
{
- recenttracks[trackindex].date.uts = Math.round(new Date().getTime() / 1000);
+ continue;
}
y.log('At '+recenttracks[trackindex].date.uts+', user have listen '+recenttracks[trackindex].name+' by '+recenttracks[trackindex].artist.content);

0 comments on commit 83c5c15

Please sign in to comment.