Uh oh, I think I see the problem!

What do the ratings look like in the Hist file - are they 0-5 or 0-100 ?
Seems I forgot to multiply by 20 in the Update script.

If you're happy modifying it yourself.the line in iTunesUpdateWin.pl
$status = $trackHandle->{rating} = $data{rating};

Should be
$status = $trackHandle->{rating} = $data{rating} * 20;

I'll post a fixed version on my site tonight.

James 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of barcar
Sent: 07 October 2005 11:00
To: [email protected]
Subject: [SlimDevices: Plugins] iTunes Update - Ratings not updated


I'm running iTunes Update v1.4 against SlimServer v6.1.2 with iTunes
v5.0.1.4 all on Windows XP. iTunes Update is running is "indirect" mode
where I manually import updates using the perl script.

When I import my iTunes_Hist.txt file the "last played" times and play
counts in itunes get updated correctly.

However, if I have set a song rating this does not get updated.

Below is a snippet from the import process showing one track with a
rating set and one without. In both cases the rating in iTunes is
unset.

Anybody seen this behaviour or got any ideas?

Thanks for any help.

Barry.

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

==logTrackToiTunesWin()
Searching iTunes for *Kelis In Public (Featuring Nas)*
Found 1 track(s) in iTunes
Checking for: *C:\Documents and Settings\xxxx\My Documents\My
Music\Kelis\Tasty\05 In Public (Featuring Nas).m4a*
Found track in iTunes
Marking as played in iTunes
Updating rating in iTunes
==logTrackToiTunesWin()
Searching iTunes for *New Order Working Overtime*
Found 1 track(s) in iTunes
Checking for: *C:\Documents and Settings\xxxx\My Documents\My Music\New
Order\Waiting For The Sirens' Call\11 Working Overtime.m4a*
Found track in iTunes
Marking as played in iTunes
==logTrackToiTunesWin()


-- 
barcar
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins
--------------------------------------------------------

NOTICE: If received in error, please destroy and notify sender.  Sender does 
not waive confidentiality or privilege, and use is prohibited.
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins

Reply via email to