alain_desilets

Q: How to import ID3 rating tags into iTunes

I have a very large collection of mp3s that I have rated with Windows Media Player (which stores them as ID3 tags in the files). I now want to move this collection to iTunes on a mac.

 

As far as I understand it, iTunes does not read the ID3 ratings from the files, and instead, stores the ratings in its own database.

 

Is there a way I can import the ID3 ratings into the iTunes database?

 

Thanks.

MacBook Air, OS X Mavericks (10.9.4)

Posted on Jul 20, 2014 6:09 PM

Close

Q: How to import ID3 rating tags into iTunes

  • All replies
  • Helpful answers

  • by Limnos,

    Limnos Limnos Jul 20, 2014 8:14 PM in response to alain_desilets
    Level 9 (54,101 points)
    Mac OS X
    Jul 20, 2014 8:14 PM in response to alain_desilets
  • by TheLittleRed,

    TheLittleRed TheLittleRed Jun 1, 2015 5:09 PM in response to alain_desilets
    Level 1 (0 points)
    Jun 1, 2015 5:09 PM in response to alain_desilets

    I too have had this problem,  so I wrote up a quick applescript. It requires the EXIFTool to be installed from here: http://www.sno.phy.queensu.ca/~phil/exiftool/

     

    Simply paste this script into Script Editor, save it to file and copy it to your Library/iTunes/Scripts folder.

    -------------------------------------------------------------------------------- ---------------

    tell application "iTunes"

       

        -- act on particular tracks or all tracks currently displayed

        if selection is not {} then

            set sel to selection

        else

            set sel to file tracks of view of front window

        end if

       

        -- loop through each selected track

        repeat with aTrack in sel

            set loc to aTrack's location

            set prettyloc to (quoted form of POSIX path of loc) as string

            set popm to do shell script ("exiftool -Popularimeter " & prettyloc & "|sed s'/^.*Rating=//g;s/ .*//g;'")

            try

                set trackrating to round (popm / 2.56) as number

            end try

            if class of trackrating is integer and trackrating > 0 then

                tell aTrack

                    set rating to trackrating

                end tell

            end if

        end repeat

       

    end tell

    -------------------------------------------------------------------------------- ---------------

  • by jensf,

    jensf jensf Feb 21, 2016 8:35 AM in response to TheLittleRed
    Level 1 (0 points)
    Feb 21, 2016 8:35 AM in response to TheLittleRed

    Thanks a lot - just successfully reimported ratings for 12000 songs...

    Only modification was changing "exiftool" in the script to the complete path, in my case "/usr/local/bin/exiftool"