43081j / id3

A JavaScript ID3 tags parser for Node & browsers.
MIT License
335 stars 63 forks source link

Years are returned as null #55

Closed ZMYaro closed 3 years ago

ZMYaro commented 3 years ago

This library seems to read most tags fine, but always returns a year: null field, whether or not the song has a year in its tags.

43081j commented 3 years ago

I've tried to fix it in #56 but MP3s vary so much i can't possibly know if it worked for you.

Could you possibly clone the branch in that PR, npm run build and try it against your mp3 with something like this:

import * as id3 from './lib/id3.js';

id3.fromPath('./test.mp3').then((tags) => {
  console.log(tags);
});

I had it in a test.mjs which i then call directly with node node test.mjs (node v14).

ZMYaro commented 3 years ago

Sorry for taking so long to get back to the project I was using this on. Yes, that fix worked for me; thank you so much!