node-taglib-sharp
node-taglib-sharp copied to clipboard
missing default tags m4a
Hello, I am missing some tags and I startet with id3v2 to find a way to retrieve those. It looks like this and works:
if (_.includes(["mp3", "wav", "aiff"], audioFileNameExtension)) {
const customIdentifiersId3v2 = {
language: FrameIdentifiers["TLAN"],
originalReleaseYearDateTime: FrameIdentifiers["TDOR"],
recordingDateTime: FrameIdentifiers["TDRC"],
websiteUrl: FrameIdentifiers["WOAR"],
}
const id3v2Tag = <taglib.Id3v2Tag>taglibFile.getTag(taglib.TagTypes.Id3v2, false)
// alle specials setzen
audioData.language = id3v2Tag.getTextAsString(customIdentifiersId3v2.language)
audioData.originalReleaseYearDateTime = id3v2Tag.getTextAsString(customIdentifiersId3v2.originalReleaseYearDateTime)
audioData.recordingDateTime = id3v2Tag.getTextAsString(customIdentifiersId3v2.recordingDateTime)
audioData.websiteUrl = id3v2Tag.getTextAsString(customIdentifiersId3v2.websiteUrl)
}
but I dont know how to write those and how to get those tags from m4a, mp4 and other formats. I cant find any related information in docs.
I would appreciate any help.