Thanks Richard.
I've not seen this one myself.
What would the date have been that failed?

The reason I translated the month into a string was because I wasn't
sure what would happen with US vs UK date formats...
It's all a bit of a guess!

What localisation does your machine have set?


-----Original Message-----
From: discuss-bounces (AT) lists (DOT)
[mailto:discuss-bounces (AT) lists (DOT)] On Behalf Of Richard
Sent: 19 January 2005 20:44
To: Slimserver Discuss
Subject: [slim] iTunes update plugin 0.6 and iTunes not

Got this on a sample update..

Found track in iTunes
Marking as played in iTunes
Win32::OLE(0.1702) error 0x80020005: "Type mismatch"
in PROPERTYPUT "playedDate"

The playcount was updated, but the playedDate ran into this.

I changed your perl script like:

#%%$status = $trackHandle->{playedDate} = "$hr:$min:$sec
$status = $trackHandle->{playedDate} = "$day-$month-$year $hr:$min:$sec

And all was good. Thanks for the commented output lines.. they helped.

Running XP SP2. Latest security patches. Active Perl 5.8