Skip to content

Instantly share code, notes, and snippets.

@briancavalier
Created June 16, 2014 21:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save briancavalier/a38b72bc9b9cd789e534 to your computer and use it in GitHub Desktop.
Save briancavalier/a38b72bc9b9cd789e534 to your computer and use it in GitHub Desktop.
return mopidy.tracklist.add(playlist.tracks).then(function (tlTracks) {
return mopidy.playback.play(tlTracks[trackNum]);
}).then(function() {
return mopidy.playback.getCurrentTrack().then(function (track) {
console.log("Now playing:", trackDesc(track));
});
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment