Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
tagMp3() {
const tags = {
title: this.props.title,
artist: this.props.artist,
album: this.props.album,
image: this.verifyImage(this.tmpArt) ? this.tmpArt : false,
trackNumber: `${this.props.trackNum}/${this.props.totalTracks}`,
};
nodeID3.removeTags(this.tmpSong);
nodeID3.write(tags, this.tmpSong);
}