iTunes ratings.sync

November 12th, 2007 Leave a comment Go to comments

Want to keep your iPod on manual sync, but also want your ratings to be sync’d between your library & iPod? Yeah me too, so I wrote a javascript to do it. I run it on windows (I’ve included a batch file to run it) but javascript will run anywhere…

You don’t have to call it with any parameters, it’s interactive (takes input from cmd-line). It asks which source has the right ratings: your iTunes library or your ipod, then it updates ratings accordingly. It doesn’t run quick (takes a long time on my 100gb library) but it works well.

ratingsSync-1.1.0.zip - interactive mode added, optimization added

Sample output from 1.0.0 (missing the interactive option), note the questions asked:

C:temp>cscript ratingsSync.js 
Microsoft (R) Windows Script Host Version 5.6 
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.   

Found your iPod library...   

Which has the ratings that are correct/authoritative: 1=iPod 2=Library ? 
1 
Okay, syncing ratings from iPod --> iTunes library...   

Legend:   

        . = ratings matched (no action taken) 
        + = ratings didn't match (destination rating changed) 
        ! = A song in your iPod couldn't be found in your iTunes library   

................................................................................ 
................................................................................ 
................................................................................ 
................................................................................ 
................................................................................ 
................................................................................ 
................................................................................ 
................................................................................ 
................................................................................ 
................................................................................ 
................................................................................ 
..................................................................+............. 
................................................................................ 
................................................................................ 
................................................................................ 
................................................................................ 
................................................................................ 
................................................................................ 
................................................................................ 
................................................................................ 
...................+............................................................ 
................................................................................ 
................................................................................ 
................................................................................ 
................................................................................ 
................................................................................ 
................................................................................ 
................................................................................ 
................................................................................ 
................................................................................ 
................................................................................ 
.............+.................................................................. 
................................................................................ 
................................................................................ 
................................................................................ 
................................+++++...+.....++..+.....................++++++++ 
++++++.............................!+........................................... 
................................................................................ 
................................................................................ 
................................................................................ 
.....................+++++++++++++++................................++.+++++++.. 
................................................................................ 
................................................................................ 
........................................................!!!!!!!!!!!!!!!!!!!!!!!! 
!!!!!!!!!!!!!!!!!!!!!!.!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!....................... 
................................................................................ 
...................................................   

Done. 
Would you like to see which songs in your iTunes library had ratings changed? 
y 
Garbage - Stupid Girl, iPod rating 80 vs iTunes library's 100 
Portishead - It Could Be Sweet, iPod rating 80 vs iTunes library's 100 
Red Hot Chili Peppers - Dani California, iPod rating 60 vs iTunes library's 80 
David Guetta vs. The Egg - Love Don't Let Me Go (Walking Away) (Original Mix), i 
Pod rating 60 vs iTunes library's 80 
Chris Lake ft Laura V - Changes (Vocal Club Mix), iPod rating 60 vs iTunes libra 
ry's 80 
Yuksek - Sorry (Original Mix), iPod rating 40 vs iTunes library's 60 
Tommy Trash - Slide (Electro Funk Lovers Remix), iPod rating 60 vs iTunes librar 
y's 40 
Solu Music ft KimBlee - Fade (The Bimbo Jones Strings Remix), iPod rating 100 vs 
 iTunes library's 40 
Kelis ft Too $hort - Bossy (Alan Braxe & Fred Falke Remix), iPod rating 40 vs iT 
unes library's 60 
Michael Gray ft Shelly Poole - Borderline (Vocal Club Mix), iPod rating 80 vs iT 
unes library's 40 
Kortezman - My Love (Kortezman Vocal Mix), iPod rating 60 vs iTunes library's 40   

Cassius - Toop Toop (Cassius Reggae Rock Mix), iPod rating 80 vs iTunes library' 
s 40 
Laurent Garnier - 6 Months Earlier, iPod rating 60 vs iTunes library's 80 
Laurent Garnier - Man With The Red Face (Live Recording), iPod rating 0 vs iTune 
s library's 80 
Junior Boys - Double Shadow, iPod rating 0 vs iTunes library's 60 
Junior Boys - The Equalizer, iPod rating 0 vs iTunes library's 60 
Junior Boys - In The Morning, iPod rating 0 vs iTunes library's 60 
Junior Boys - First Time, iPod rating 0 vs iTunes library's 60 
Junior Boys - Count Souvenirs, iPod rating 80 vs iTunes library's 60 
Junior Boys - So This Is Goodbye, iPod rating 0 vs iTunes library's 60 
Junior Boys - Like A Child, iPod rating 0 vs iTunes library's 60 
Junior Boys - Caught In A Wave, iPod rating 0 vs iTunes library's 60 
Junior Boys - When No One Cares, iPod rating 0 vs iTunes library's 60 
Junior Boys - FM, iPod rating 0 vs iTunes library's 60 
Sneaky Sound System - Pictures (Tonite Only Remix), iPod rating 80 vs iTunes lib 
rary's 100 
Sarah McLeod - He Doesn't Love You (Hook N Sling Vocal Remix), iPod rating 60 vs 
 iTunes library's 80 
Led Zeppelin - Misty Mountain Hop, iPod rating 0 vs iTunes library's 20 
The Dears - Sinthro, iPod rating 0 vs iTunes library's 20 
The Dears - Ticket To Immortality, iPod rating 0 vs iTunes library's 80 
The Dears - Death Or Life We Want You, iPod rating 0 vs iTunes library's 60 
The Dears - Hate Then Love, iPod rating 0 vs iTunes library's 80 
The Dears - There Goes My Outfit, iPod rating 0 vs iTunes library's 60 
The Dears - Bandwangoners, iPod rating 0 vs iTunes library's 80 
The Dears - Fear Made The World Go 'Round, iPod rating 0 vs iTunes library's 60 
The Dears - You And I Are A Gang Of Losers, iPod rating 0 vs iTunes library's 60   

The Dears - Whites Only Party, iPod rating 0 vs iTunes library's 80 
The Dears - Ballad Of Humankindness, iPod rating 0 vs iTunes library's 60 
The Dears - I Fell Deep, iPod rating 0 vs iTunes library's 60 
The Dears - Find Our Way To Freedom, iPod rating 0 vs iTunes library's 60 
The Dears - The Highest, iPod rating 0 vs iTunes library's 40 
The Dears - Whites Only Party (demo), iPod rating 0 vs iTunes library's 60 
The Dears - There Goes My Outfit (acoustic), iPod rating 0 vs iTunes library's 2 
0 
Ghostland Observatory - Piano Man, iPod rating 0 vs iTunes library's 80 
Ghostland Observatory - Ghetto Magnet, iPod rating 0 vs iTunes library's 60 
Ghostland Observatory - All You Rock & Rollers, iPod rating 0 vs iTunes library' 
s 40 
Ghostland Observatory - Vibrate, iPod rating 0 vs iTunes library's 40 
Ghostland Observatory - Sad Sad City, iPod rating 0 vs iTunes library's 60 
Ghostland Observatory - Stranger Lover, iPod rating 0 vs iTunes library's 40 
Ghostland Observatory - Paparazzi Lightning, iPod rating 0 vs iTunes library's 4 
0 
Ghostland Observatory - I'll Be Suzy, iPod rating 0 vs iTunes library's 40 
Ghostland Observatory - Midnight Voyage, iPod rating 0 vs iTunes library's 40   

Would you like to see a list of songs that are in your iPod but not in your iTun 
es library? (y/n) 
y 
Artist: U2, Track: Vertigo 
Artist: Pimsleur, Track: Lesson 15 
Artist: Pimsleur, Track: Lesson 1 
Artist: Pimsleur, Track: Lesson 16 
Artist: Pimsleur, Track: Lesson 2 
Artist: Pimsleur, Track: Lesson 3 
Artist: Pimsleur, Track: Lesson 17 
Artist: Pimsleur, Track: Lesson 18 
Artist: Pimsleur, Track: Lesson 4 
Artist: Pimsleur, Track: Lesson 19 
Artist: Pimsleur, Track: Lesson 5 
Artist: Pimsleur, Track: Lesson 20 
Artist: Pimsleur, Track: Lesson 6 
Artist: Pimsleur, Track: Lesson 21 
Artist: Pimsleur, Track: Lesson 7 
Artist: Pimsleur, Track: Lesson 22 
Artist: Pimsleur, Track: Lesson 8 
Artist: Pimsleur, Track: Lesson 09 
Artist: Pimsleur, Track: Lesson 23 
Artist: Pimsleur, Track: Lesson 24 
Artist: Pimsleur, Track: Lesson 10 
Artist: Pimsleur, Track: Lesson 11 
Artist: Pimsleur, Track: Lesson 25 
Artist: Pimsleur, Track: Lesson 12 
Artist: Pimsleur, Track: Lesson 26 
Artist: Pimsleur, Track: Lesson 13 
Artist: Pimsleur, Track: Lesson 17 
Artist: Pimsleur, Track: Lesson 14 
Artist: Pimsleur, Track: Lesson 18 
Artist: Pimsleur, Track: Lesson 29 
Artist: Pimsleur, Track: Lesson 30 
Artist: Pimsleur, Track: Lesson 15 
Artist: Pimsleur, Track: Lesson 15 reading 
Artist: Pimsleur, Track: Lesson 16 
Artist: Pimsleur, Track: Lesson 16 reading 
Artist: Pimsleur, Track: Lesson 17 
Artist: Pimsleur, Track: Lesson 03 
Artist: Pimsleur, Track: Lesson 17 reading 
Artist: Pimsleur, Track: Lesson 04 
Artist: Pimsleur, Track: Lesson 18 
Artist: Pimsleur, Track: Lesson 18 reading 
Artist: Pimsleur, Track: Lesson 05 
Artist: Pimsleur, Track: Lesson 19 
Artist: Pimsleur, Track: Lesson 19 reading 
Artist: Pimsleur, Track: Lesson 06 
Artist: Pimsleur, Track: Lesson 20 
Artist: Pimsleur, Track: Lesson 20 reading 
Artist: Pimsleur, Track: Lesson 21 
Artist: Pimsleur, Track: Lesson 08 
Artist: Pimsleur, Track: Lesson 21 readings 
Artist: Pimsleur, Track: Lesson 22 
Artist: Pimsleur, Track: Lesson 22 readings 
Artist: Pimsleur, Track: Lesson 09 
Artist: Pimsleur, Track: Lesson 23 
Artist: Pimsleur, Track: Lesson 23 readings 
Artist: Pimsleur, Track: Lesson 10 
Artist: Pimsleur, Track: Lesson 10 reading 
Artist: Pimsleur, Track: Lesson 24 
Artist: Pimsleur, Track: Lesson 24 readings 
Artist: Pimsleur, Track: Lesson 11 
Artist: Pimsleur, Track: Lesson 25 
Artist: Pimsleur, Track: Lesson 25 readings 
Artist: Pimsleur, Track: Lesson 11 - Reading 
Artist: Pimsleur, Track: Lesson 12 
Artist: Pimsleur, Track: Lesson 26 
Artist: Pimsleur, Track: Lesson 26 readings 
Artist: Pimsleur, Track: Lesson 12 - Reading 
Artist: Pimsleur, Track: Lesson 27 
Artist: Pimsleur, Track: Lesson 13 
Artist: Pimsleur, Track: Lesson 13 reading 
Artist: Pimsleur, Track: Lesson 27 readings 
Artist: Pimsleur, Track: Lesson 14 
Artist: Pimsleur, Track: Lesson 28 
Artist: Pimsleur, Track: Lesson 14 reading 
Artist: Pimsleur, Track: Lesson 28 readings 
Artist: Pimsleur, Track: Lesson 29 
Artist: Pimsleur, Track: Lesson 01 
Artist: Pimsleur, Track: Lesson 29 readings 
Artist: Pimsleur, Track: Lesson 02 
Artist: Pimsleur, Track: Lesson 30 
Artist: Pimsleur, Track: Lesson 30 readings   

C:temp>
  1. roger
    February 23rd, 2010 at 21:36 | #1

    this script is so awesome. it works perfectly.

  2. TDot
    February 25th, 2010 at 18:06 | #2

    thanks Roger :)

  3. sergio
    May 27th, 2010 at 16:00 | #3

    how do I run this on a mac? thanks for the help..

  1. No trackbacks yet.

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Anti-spam image