I have three primary ways of listening to music...

1. Directly in iTunes - Last.FM submissions taken care of by jscrob2 in
iTunes (live submission)
2. On an iPod - Last.FM submissions also taken care of by jscrob2 in
iTunes (cached submission)
3. On a SlimServer - Last.FM submissions taken care of by
audioscrobbler (live submission).

The problem I have is that I also run the iTunes Update plugin on
SlimServer which updates play counts and ratings back into iTunes. This
action causes jscrob2 to consider the SlimServer updates as additional
plays to be reported to Last.FM (just like an iPod) - so Last.FM either
flags submissions as SPAM (bad) or double counts (worse).

I'd like to modify the iTunes Update script to switch jscrob2 off in
iTunes before it loads it's updates and then switch it back on
afterwards. This seems to be possible via the iTunes SDK by switching
to the default visualiser before and back afterwards. This would allow
me to maintain live updates from SlimScrobbler whilst allowing cached
updates from my iPod.

I've got as far as this in iTunesUpdateWin.pl:


Code:
--------------------
    $DefaultVisualizer = $iTunesHandle->Visuals->ItemByName("iTunes 
Visualizer");
  $CurrentVisualizer = $iTunesHandle->CurrentVisual;
  my $status = $iTunesHandle->{CurrentVisual} = 
$iTunesHandle->Visuals->ItemByName("iTunes Visualizer");
--------------------

But this gives the error:

Code:
--------------------
    Win32::OLE(0.1703) error 0x80020003: "Member not found"
  in PROPERTYPUTREF "CurrentVisual"
--------------------

I know it's my Perl that's at fault and was hoping somebody could point
me in the right direction as to how I can set the CurrentVisual property
using the iTunes SDK in Perl.

If I get it working I'll post modified code for others to use.

Many thanks.


-- 
barcar
------------------------------------------------------------------------
barcar's Profile: http://forums.slimdevices.com/member.php?userid=1760
View this thread: http://forums.slimdevices.com/showthread.php?t=29558

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

Reply via email to