Use taglib-ruby to get track metadata