Created
January 27, 2013 11:40
-
-
Save leetreveil/4647978 to your computer and use it in GitHub Desktop.
musicmetadata read from network
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var http = require('https'); | |
var musicmetadata = require('musicmetadata'); | |
http.get('https://dl.dropbox.com/u/1269592/Into%20The%20Back%20%28WORNG%20Remix%29.mp3', function (res) { | |
var parser = new musicmetadata(res); | |
parser.on('metadata', function (result) { | |
console.log(result); | |
}); | |
parser.on('done', function (err) { | |
if (err) throw err; | |
}); | |
}).on('error', function(e) { | |
console.log('Got error: ' + e.message); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment