Method: AutoTune::Designator.set_album_artist_name
- Defined in:
- lib/autotune/designator.rb
.set_album_artist_name(album_artist, song) ⇒ Object
170 171 172 173 174 175 176 177 178 179 180 181 182 |
# File 'lib/autotune/designator.rb', line 170 def self.set_album_artist_name(album_artist, song) if File.exists? song if song =~ /.*\.M4A$/i TagLib::MP4::File.open(song) do |tune| unless album_artist.nil? item = TagLib::MP4::Item.from_string_list([album_artist]) tune.tag.item_list_map.insert('aART', item) tune.save end end end end end |