Issues with .m4a's #14

Closed
nickdesaulniers opened this Issue Nov 19, 2012 · 1 comment

Comments

Projects
None yet
2 participants

I've got a set of m4a files that I can view the metadata perfectly fine with mp3tag, but I don't get anything from musicmetadata:

var fs = require('fs');
var musicmetadata = require('musicmetadata');

var dir = '/Users/wangstabill/Music/Katatonia\ -\ Dead\ End\ Kings/';
var files = fs.readdirSync(dir);

files.forEach(function (file) {
  var parser = new musicmetadata(fs.createReadStream(dir + file));
  parser.on('metadata', function (result) {
    console.log(result);
  });
});

gives:

{ title: '',
  artist: [],
  albumartist: [],
  album: '',
  year: 0,
  track: { no: 0, of: 0 },
  genre: [],
  disk: { no: 0, of: 0 },
  picture: {} }
{ title: '',
  artist: [],
  albumartist: [],
  album: '',
  year: 0,
  track: { no: 0, of: 0 },
  genre: [],
  disk: { no: 0, of: 0 },
  picture: {} }
etc...

The metadata event is firing the correct number of times, but the result argument object doesn't have values. I'm using musicmetadata v0.1.9. I'd also be happy to email the offending files.

Owner

leetreveil commented Nov 19, 2012

Send them over to me and I'll take a look. leetreveil at gmail dot com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment