Browse files

example: use the preferred spotify.get() function

In play.js, rather then the older .metadata() function.
  • Loading branch information...
1 parent 63fcc59 commit 22c99b08751815a7d545e0a4687f721816b2a7be @TooTallNate committed Jan 20, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 example/play.js
View
2 example/play.js
@@ -22,7 +22,7 @@ Spotify.login(login.username, login.password, function (err, spotify) {
if (err) throw err;
// first get a "Track" instance from the track URI
- spotify.metadata(uri, function (err, track) {
+ spotify.get(uri, function (err, track) {
if (err) throw err;
console.log('Playing: %s - %s', track.artist[0].name, track.name);

0 comments on commit 22c99b0

Please sign in to comment.