benrr101 / node-taglib-sharp

A node.js port of mono/taglib-sharp
GNU Lesser General Public License v2.1
42 stars 11 forks source link

Make versions immutable for ID3 tags #47

Open benrr101 opened 2 years ago

benrr101 commented 2 years ago

Logic for converting frames between versions is really annoying and as I'm finding, not robust. To simplify things (and simplify the usage for users), make the version of ID3v2 tag objects immutable. In order to change versions, create a new tag and copy the old tag into it. The copy logic should handle any conversion between frame types.