taglib/taglib — pull request #23 by supermihi (2012-01-01 14:01:51+00:00)
Title: Unified dictionary-based tag interface

Hi there,

as discussed on the taglib-devel mailing list some months ago, I have started to implement a dictionary-based abstract interface for reading and writing tags regardless of the specific type. It is meant as an extension of the rather few static functions in TagLib::Tag (like title(), album(), artist()), capable of handling (almost) free-form text tag names, as well as multiple values for the same tag.

Of course this is not possible for all file types. The easiest are vorbis comments which already are of the desired form. ID3v2 is rather complicated due to the huge amount of predefined frames, but due to TXXX frames it is possible to store arbitrary key=[list of values] pairs.

I am aware that this project is far from complete (e.g. there is no abstract way to read and write binary picture data yet), but I would be happy about comments regarding my approach, the implementation, and chances of inclusion in the main taglib trunk, before I put too much into following the wrong direction.

Thanks in advance,
Michael