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?
James
-----Original Message-----
From: discuss-bounces (AT) lists (DOT) slimdevices.com
[mailto:discuss-bounces (AT) lists (DOT) slimdevices.com] On Behalf Of Richard
Grant
Sent: 19 January 2005 20:44
To: Slimserver Discuss
Subject: [slim] iTunes update plugin 0.6 and iTunes 4.7.1.30 not
playingnice..
Got this on a sample update..
==logTrackToiTunesWin()
********
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
$day-$monthHash{$month}-$year";
$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
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?
James
-----Original Message-----
From: discuss-bounces (AT) lists (DOT) slimdevices.com
[mailto:discuss-bounces (AT) lists (DOT) slimdevices.com] On Behalf Of Richard
Grant
Sent: 19 January 2005 20:44
To: Slimserver Discuss
Subject: [slim] iTunes update plugin 0.6 and iTunes 4.7.1.30 not
playingnice..
Got this on a sample update..
==logTrackToiTunesWin()
********
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
$day-$monthHash{$month}-$year";
$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
Richard