aadsm / jsmediatags

Media Tags Reader (ID3, MP4, FLAC)
Other
748 stars 128 forks source link

ID3v2TagReader _getFrameData #64

Closed ghost closed 7 years ago

ghost commented 7 years ago

It should be:

(frames[id] instanceof Array ? frames[id][0] : frames[id]).data

not

frames[id].data

ghost commented 7 years ago

You should do that. Because sometimes when a song file has 2 comments or 2 something. comment prop shortcut would be undefined.

This doesn't just apply to comment. It does apply to all shortcuts.