ruby-mp3info icon indicating copy to clipboard operation
ruby-mp3info copied to clipboard

Writing a tag removes other tags

Open johnloringpollard opened this issue 4 years ago • 0 comments

I am trying to just write the title, artist, album, and genre. But when I do that it removes the comment and lyrics tags. How can I keep other tags in place without losing them?

    Mp3Info.open(@file_path) do |mp3|
      mp3.tag.title  = title
      mp3.tag.artist = artist
      mp3.tag.album  = album
      mp3.tag.genre_s  = "Podcast"
    end

Before

  ;FFMETADATA1
  title=Positive Practices to Start your day
  comment=Pete Cann talks to Robert Rivest all about Waking up in the morning. Positive Practices to start your day. Laughter Yoga is practiced and it's such a great mindset episode.
  album=Laughter and Positivity with Pete Laughter Yoga and Mindset
  genre=Podcast
  encoded_by=auphonic.com
  TIT3=Join Pete and Robert talking about Laughter Yoga as a way to start your day.
  artist=Pete Cann 'The laughter man' & Robert Rivest
  track=036
  lyrics-eng=Pete Cann talks to Robert Rivest all about Waking up in the morning. Positive Practices to start your day. Laughter Yoga is practiced and it's such a great mindset episode.
  date=2020
  encoder=Lavf58.45.100

After

  ;FFMETADATA1
  title=Rivest test
  album=Youth Podcast
  genre=Podcast
  encoded_by=auphonic.com
  TIT3=Join Pete and Robert talking about Laughter Yoga as a way to start your day.
  artist=Pastor Tim Tom
  track=36
  date=2020
  encoder=Lavf58.45.100

johnloringpollard avatar Jan 05 '21 19:01 johnloringpollard