Skip to content

Instantly share code, notes, and snippets.

@aaronmoodie
Created January 5, 2013 09:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aaronmoodie/4460723 to your computer and use it in GitHub Desktop.
Save aaronmoodie/4460723 to your computer and use it in GitHub Desktop.
1.9.2p290 :002 > require 'taglib'
=> true
1.9.2p290 :003 > TagLib::MPEG::File.new('taro.mp3') do |file|
1.9.2p290 :004 > tag = file.tag
1.9.2p290 :005?> puts "#{file}: #{tag.title} by #{tag.artist}; track #{tag.track} on #{tag.album}"
1.9.2p290 :006?> end
=> #<TagLib::MPEG::File:0x007f9cea923770>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment