Easily Import Song Ratings to iTunes

Updated
iTunes IconA few years ago I was given an iPod. Like many, I loaded all of my songs into iTunes and used it as my primary music player. At some point iTunes stopped working and nothing I did would get it working again.

At that point, I switched to an alternate music player, JRiver’s MediaCenter. While this software served my purpose, I recently had a need to move back to iTunes. The only challenge for me was how to move my song ratings into iTunes. No big deal you say? Well, for me, song ratings are the key to all of my playlists (a subject of another post). If I had to start from scratch, rating my 5000+ song library, I would be working straight through the new year.

My initial thought was to do it with some software. However, thinking about it some more, I came away with a better solution – playlists.

The idea I have is to create playlists based on song ratings inside of MediaCenter. These are “Smart Lists”
that automatically update as songs are rated. MediaCenter allows you to export these playlists into various formats. One of them M3U is supported by iTunes. Here is what I did:

  1. Imported all of my songs into iTunes. This took some time.
  2. Created the following playlists in JRiver MediaCenter
    • 1 Star
    • 2 Star
    • 3 Star
    • 4 Star
  3. Exported each playlists as an M3U file
  4. Start iTunes
  5. Select File->Import and open the playlists you just saved. When you do, iTunes will
    import the playlist and display it under the iTunes playlists.
  6. Click the newly created playlist
  7. Highlight all of the songs in the playlist
  8. Right mouse click over the songs and rate them
  9. Repeat the import process for each of your playlists

Since iTunes can import M3U files, migrating your song ratings will work with any other player that also support M3U playlists. Most do.

There are a couple of caveats to this tutorial which are rooted in the M3U file format. The M3U file stores both the filename and the path to the file. There are two (at least) potential problems.

  1. If you want to move from Windows to OSX
  2. If your music file locations have changed

If you have either of these problems then a little Script-Fu should do the trick. It wouldn’t be too hard to write a quick parser in Perl/Python/Ruby which changes the path and filename to the new locations.

Technorati Tags: , , ,

16 Responses to “Easily Import Song Ratings to iTunes”

  1. Jack Nance
    January 8, 2008 at 5:20 am #

    I tried this but it made duplicates of the songs and then the originals were ‘file not found’ I’ve tried it a couple of times. I did a drag and drop to put the original files into iTunes.

  2. joecotellese
    January 8, 2008 at 8:51 pm #

    Interesting, I just verified this and everything works.

    One possibility is the file paths in the M3U file don’t match up to the paths of the files that were dragged into iTunes.

    For example, I have a drive dedicated to music. All of my music lives in M:\path\to\my\tunes. If I look at the M3U file, the path is correct. If I look at a particular song in the Get Info view of iTunes, the path is also correct.

    Are you doing this on Windows or a Mac?

  3. robthehall
    January 11, 2008 at 10:21 pm #

    I successfully imported my ratings from Windows Media Player (on a Windows box) to iTunes (on a Mac). The only hitch I had was the relative pathnames that were encoded in the .m3u file. I just did a search and replace on “..”, and replaced it with the absolute path. For good measure, I also converted the backslashes to forward slashes and removed the CR’s.

    Step 1 must be completed before step 5, or else it’ll just create a playlist with only the songs in it’s library.

    Thanks for the post.

  4. joecotellese
    February 4, 2008 at 8:32 am #

    Rob,

    Glad it worked for you, thanks for the update.

  5. Jordan
    February 16, 2008 at 4:17 am #

    Thank you so much for this tutorial – it’s helped me on numerous occasions!

  6. Dominic
    March 20, 2009 at 1:46 pm #

    This is really helpful, but how do you deal with the filenames being different? I need to import my music library from Windows Media Player on a PC to iTunes on a Mac. I have tried your steps and it works to a point but as iTunes uses a different naming format a quick search and replace on the path doesn’t do the job. Any thoughts gratefully appreciated.

  7. Ert
    July 29, 2009 at 9:58 am #

    Totally brilliant. Thanks!

  8. Oedor
    December 5, 2009 at 5:08 pm #

    Worked perfectly (Windows Media Player 11 to iTunes)!

  9. MUFCN21
    October 4, 2010 at 9:49 am #

    This works like a charm….brilliant. Thanks

    Why Apple does not provide this kind of assistance is beyond my ken. I have delayed buying an IPod for years because of this one issue.

    Thanks again

  10. fad3d
    October 28, 2010 at 10:14 am #

    Thanks a lot!
    It saved me from rerating over 2000 files.

  11. Zackary Hannah
    October 30, 2010 at 2:44 pm #

    We suffer over at ours from loads of traffic but very few commenters apart from our own group. Maybe this will help them? Love the blog.

  12. Nawaz Alamgir
    November 14, 2010 at 7:29 pm #

    Top man, Very Clever but simple idea, thanks!

  13. Alan
    February 19, 2011 at 11:39 pm #

    So glad I found this posting – as fad3d said above, this saved me hours by not having to re-rate my ITunes library after I moved it to a new drive. And my ratings are a key aspect of my IPod usage.

  14. Bosun
    April 10, 2011 at 5:02 pm #

    Neat idea. You might want to export your ?star playlists to .txt though, if the filenames are different

  15. admin
    May 20, 2011 at 9:44 am #

    Glad this helped you.

  16. Acid Zebra
    October 16, 2011 at 12:18 pm #

    4 years later and this is still awesome. Needed to import from linux (Amarok) to itunes.

    Quick seach and replace in the m3u files for “/” and replace with “\”
    Then search and replace the relative path .\[some folders]\your music.mp3 to [drive letter]\some folders\your music.mp3
    and Bob’s your uncle!

    Thanks!

Leave a Reply