What rating do you want to get?
If it's the iTunes rating, then you have to extract it from the "iTunes Music Library.xml" file, because it isn't stored in the ID3 tag.
If you want the POPM frame, you can get it like this:
tag = ID3Lib::Tag.new("song.mp3")
popm = t.frame(:POPM)
rating = popm[:rating]
Does that answer your question?
|