music-metadata icon indicating copy to clipboard operation
music-metadata copied to clipboard

Hope to support tag writing

Open Linkontoask opened this issue 4 years ago • 2 comments

Feature Request

I hope that after parsing, I can delete and modify the metadata and return the processed data. I don't know if this is difficult. When I read your code, I found that a lot of things have been done, such as parsed data. (I guess if I just need to replace the data in the right place)

demo

import { parseBuffer } from 'music-metadata'
import { writeFile } from 'fs'
parseBuffer(buffer)
  .then(data => data.updateTag('COMM', Buffer.from('I am a comment', 'utf-8')))
  .then(buffer => {
      writeFile('comment.mp3', buffer, () => {})
  })

Linkontoask avatar Dec 31 '20 15:12 Linkontoask

Duplicate of #10, #694. It is not so easy, it is a lot of work, and I think it will make the component a lot heavier. But you are right, a lot of things can be reused.

Borewit avatar Jan 04 '21 18:01 Borewit

I think you have replied in other issues that you do not intend to support tag writing. Unfortunately, I don’t know much about this technology, otherwise I can provide some help.

Linkontoask avatar Jan 05 '21 02:01 Linkontoask

maybe node-taglib-sharp can help

subframe7536 avatar Dec 06 '22 13:12 subframe7536

I am not planning to work on this enhancement

Borewit avatar Jan 05 '23 12:01 Borewit