43081j / id3

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

'null' tags returned for correctly tagged file... ? #35

Open ghost opened 6 years ago

ghost commented 6 years ago

Hi,

I'm trying to create a small app, using webpack, with an audio file located in my project folder. Here is my code:

import fs from 'fs'
import id3 from 'id3js'

tagReader: () => {
  id3('./../data/test.ogg', function(err, tags) {
    console.log('tags: ', tags)
  })
}

I checked the file which is correctly tagged (it is an .ogg), but for some reason I can't understand, all properties remains 'null'... Someone having the same issue, and/or able to give me some help? Thnak you in advance!

abdulhannanali commented 6 years ago

@soykje Does this work properly for MP3 Files or is this problem only occuring OGG Files?

ghost commented 6 years ago

Hi,

Thx for your answer. Yes it occurs only with ogg, not with mp3 files. Is this a know limitation, or is there any way to fix that?

abdulhannanali commented 6 years ago

@soykje Weird! However, I am going to fork it, and create an updated ID3 Metadata Parser for JavaScript within a few days. Most of the solutions on the web are totally outdated and don't use many of the today's best web practices. I was even unable to use this on Web now, also this and others have their fair share of bloatware, which hurts browsers a lot.

ghost commented 6 years ago

Ooow great, I'll be watching for it then!