Tag Parser 12.3.1
C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags
|
This document describes how to add support for a new field. From these instructions one can also deduce what places need to be adjusted when amending support for a field.
KnownField
.TagParser::lastKnownField
accordingly.TagParser::Tag::proposedDataType()
if it is not a text field. Consider that this method might be overwritten in format-specific implementations which might need adjustment as well.vorbiscommentids.h
for Vorbis Comments.internallyGetFieldId()
and internallyGetKnownField()
methods of all formats which should be supported, e.g. TagParser::Id3v2Tag::internallyGetFieldId()
.convertToShortId()
and convertToLongId()
if possible.KnownFieldModel
class.KnownFieldModel::fieldName
.KnownFieldModel::KnownFieldModel
which composes the list of fields shown in the GUI and whether they are displayed by default or not.FIELD_NAMES
macro. It is used for the CLI's auto-completion and print-field-names
. Only use small letters (a to z) here. No whitespaces!FieldMapping::fieldMapping
array used by the CLI. Be consistent with 2.!