node-taglib-sharp icon indicating copy to clipboard operation
node-taglib-sharp copied to clipboard

missing default tags m4a

Open Ed1ks opened this issue 1 year ago • 0 comments

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.

Ed1ks avatar Sep 19 '24 17:09 Ed1ks