Forums | Admin

Discussion Forums: open-discussion

Start New Thread Start New Thread
Message: 23485
BY: Robin Stocker (robinstocker)
DATE: 2007-06-11 12:14
SUBJECT: RE: Rating of a mp3 file

 

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?


Thread View

Thread Author Date
Rating of a mp3 fileA G2007-06-11 05:49
      RE: Rating of a mp3 fileRobin Stocker2007-06-11 12:14

Post a followup to this message