Skip to content
Snippets Groups Projects
Commit 13f18fba authored by Robert J. Newmark's avatar Robert J. Newmark
Browse files

added never played in backend

parent 16754559
No related branches found
No related tags found
No related merge requests found
......@@ -162,6 +162,24 @@ djr.Backend.prototype.nowPlaying = function(song, old_songs) {
});
};
/**
* Request N never played songs
*
* @param {integer} n Number of songs requested
*
*/
djr.Backend.prototype.neverPlayedPlaylist = function(num, callback ,ctx) {
$.ajax({url: '/json/never_played',
data: {n: num },
dataType: 'json',
type: 'GET',
context: ctx || this,
success: function(data, status, jqxhr) {
callback(data.results);
}
});
};
/**
* Request N most played songs
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment