music-metadata
music-metadata copied to clipboard
Hope to support tag writing
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, () => {})
})
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.
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.
maybe node-taglib-sharp can help
I am not planning to work on this enhancement