Skip to content

Instantly share code, notes, and snippets.

@leetreveil
Created January 27, 2013 11:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leetreveil/4647978 to your computer and use it in GitHub Desktop.
Save leetreveil/4647978 to your computer and use it in GitHub Desktop.
musicmetadata read from network
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