PDA

View Full Version : Squeezebox/iTunes interaction



Dave Parboo
2004-08-14, 16:46
Greetings



I seem to vaguely recall that there was going to be a software release (or
perhaps a plug-in) that would be able to update certain fields of tracks
within iTunes (in particular the "Last Played" field) - did I dream this
while sucking on some weird stuff and listening to "Hole in my Shoe", or was
it true.



If it was true are we any closer to getting this feature?



Many tanks in a dance





Dave



ps

It would also be nice to be able to "Rate" tracks via the Squeezebox, but
I'll settle for the updating "Last Played" field.

James Craig
2004-08-15, 02:18
I wouldn't want to get anyone too excited but I'm very close to having
done this in my own way.
I've written perl code that given a song title and file path increments
the iTunes played count and sets the last played date to the current
date. (all of about 10 lines of code using the iTunes COM interface)
For my first pass at this problem I'm planning on just hacking the
'Web::History' module to call my function when it writes to the history
playlist. (I've also changed the code somewhere else to call this at the
end of the song, not the start, as iTunes does).

Obviously this is all a bit messy and not really the right way of doing
things so ultimately I was thinking of modifying the 'SlimScrobbler'
plugin to update iTunes rather than send data back to AudioScrobbler -
this module does pretty much what I want already and is far better
written than anything I have the skills or time to manage! (eg handling
of multiple synchronised players)
I guess that's OK under the terms of the software?

And as for what are the advantages of using iTunes? - try it, you might
like it. But, err, do back up your mp3s first...
Personally I haven't touched another mp3 player/ripper/tagger since
iTunes for Windows came out and to be really honest I'd be happiest if I
could control my squeezebox directly from iTunes. I do still use mp3gain
and mp3direct cut though so it's not *quite* a complete solution!
(Admission: I've owned an iPod for a couple of years already)

James

Dave Parboo wrote:

> Greetings
>
>
>
> I seem to vaguely recall that there was going to be a software release
> (or perhaps a plug-in) that would be able to update certain fields of
> tracks within iTunes (in particular the "Last Played" field) - did I
> dream this while sucking on some weird stuff and listening to "Hole in
> my Shoe", or was it true.
>
>
>
> If it was true are we any closer to getting this feature?
>
>
>
> Many tanks in a dance
>
>
>
>
>
> Dave
>
>
>
> ps
>
> It would also be nice to be able to "Rate" tracks via the Squeezebox,
> but I'll settle for the updating "Last Played" field.
>
>
>
>
>
>
>
>------------------------------------------------------------------------
>
>

Ken Anderson
2004-08-16, 05:40
James,

Regarding controlling the SqueezeBox from iTunes - what would you do if
you were at the player, and iTunes was not launched on the PC? This is
the reason I actually bailed on Roku - I would hate to have to make
sure that the machine running iTunes was always logged in and iTunes
was running...

Ken

On Aug 15, 2004, at 5:18 AM, James Craig wrote:

> I wouldn't want to get anyone too excited but I'm very close to
> having done this in my own way.
> I've written perl code that given a song title and file path
> increments the iTunes played count and sets the last played date to
> the current date. (all of about 10 lines of code using the iTunes COM
> interface)
> For my first pass at this problem I'm planning on just hacking the
> 'Web::History' module to call my function when it writes to the
> history playlist. (I've also changed the code somewhere else to call
> this at the end of the song, not the start, as iTunes does).
>
> Obviously this is all a bit messy and not really the right way of
> doing things so ultimately I was thinking of modifying the
> 'SlimScrobbler' plugin to update iTunes rather than send data back to
> AudioScrobbler - this module does pretty much what I want already and
> is far better written than anything I have the skills or time to
> manage! (eg handling of multiple synchronised players)
> I guess that's OK under the terms of the software?
>
> And as for what are the advantages of using iTunes? - try it, you
> might like it. But, err, do back up your mp3s first...
> Personally I haven't touched another mp3 player/ripper/tagger since
> iTunes for Windows came out and to be really honest I'd be happiest if
> I could control my squeezebox directly from iTunes. I do still use
> mp3gain and mp3direct cut though so it's not *quite* a complete
> solution!
> (Admission: I've owned an iPod for a couple of years already)
>
> James
>
> Dave Parboo wrote:
>
>
> Greetings
>
>
>
> I seem to vaguely recall that there was going to be a software release
> (or perhaps a plug-in) that would be able to update certain fields of
> tracks within iTunes (in particular the “Last Played” field) – did I
> dream this while sucking on some weird stuff and listening to “Hole in
> my Shoe”, or was it true.
>
>
>
> If it was true are we any closer to getting this feature?
>
>
>
> Many tanks in a dance
>
>
>
>
>
> Dave
>
>
>
> ps
>
> It would also be nice to be able to “Rate” tracks via the Squeezebox,
> but I’ll settle for the updating “Last Played” field.
>
>
>
>
>
>
>
>

James Craig
2004-08-16, 06:04
Ken,
I'm 'controlling' iTunes from the Slimserver - not quite the same thing.
Anyway, when you open the connection to iTunes, it is started
automatically by OLE if not already running.
I've preserved the iTunes connection for re-use and also check if it's
still active before each use.

Interesting point though - what if you're running Slimserver as a
service and you're not logged in?
I'd guess that's not going to work! I only have one account on my server
and it logs in automatically...

James

Ken Anderson wrote:

> James,
>
> Regarding controlling the SqueezeBox from iTunes - what would you do
> if you were at the player, and iTunes was not launched on the PC? This
> is the reason I actually bailed on Roku - I would hate to have to make
> sure that the machine running iTunes was always logged in and iTunes
> was running...
>
> Ken
>
> On Aug 15, 2004, at 5:18 AM, James Craig wrote:
>
> I wouldn't want to get anyone too excited but I'm very close to
> having done this in my own way.
> I've written perl code that given a song title and file path
> increments the iTunes played count and sets the last played date
> to the current date. (all of about 10 lines of code using the
> iTunes COM interface)
> For my first pass at this problem I'm planning on just hacking the
> 'Web::History' module to call my function when it writes to the
> history playlist. (I've also changed the code somewhere else to
> call this at the end of the song, not the start, as iTunes does).
>
> Obviously this is all a bit messy and not really the right way of
> doing things so ultimately I was thinking of modifying the
> 'SlimScrobbler' plugin to update iTunes rather than send data back
> to AudioScrobbler - this module does pretty much what I want
> already and is far better written than anything I have the skills
> or time to manage! (eg handling of multiple synchronised players)
> I guess that's OK under the terms of the software?
>
> And as for what are the advantages of using iTunes? - try it, you
> might like it. But, err, do back up your mp3s first...
> Personally I haven't touched another mp3 player/ripper/tagger
> since iTunes for Windows came out and to be really honest I'd be
> happiest if I could control my squeezebox directly from iTunes. I
> do still use mp3gain and mp3direct cut though so it's not *quite*
> a complete solution!
> (Admission: I've owned an iPod for a couple of years already)
>
> James
>
> Dave Parboo wrote:
>
>
> Greetings
>
>
>
> I seem to vaguely recall that there was going to be a software
> release (or perhaps a plug-in) that would be able to update
> certain fields of tracks within iTunes (in particular the “Last
> Played” field) – did I dream this while sucking on some weird
> stuff and listening to “Hole in my Shoe”, or was it true.
>
>
>
> If it was true are we any closer to getting this feature?
>
>
>
> Many tanks in a dance
>
>
>
>
>
> Dave
>
>
>
> ps
>
> It would also be nice to be able to “Rate” tracks via the
> Squeezebox, but I’ll settle for the updating “Last Played” field.
>
>
>
>
>
>
>
>

Pbox
2004-08-16, 08:38
James Craig wrote:

> Ken,
> I'm 'controlling' iTunes from the Slimserver - not quite the same thing.
> Anyway, when you open the connection to iTunes, it is started
> automatically by OLE if not already running.
> I've preserved the iTunes connection for re-use and also check if it's
> still active before each use.
>
> Interesting point though - what if you're running Slimserver as a
> service and you're not logged in?
> I'd guess that's not going to work! I only have one account on my
> server and it logs in automatically...

I have a Windows 2000 box where SlimServer runs. I almost never log in
as it is also my firewall and file server, and I have separate desktops.
The Slimserver as service runs without logging in. As a matter of fact
it runs "without" a user. If you look carefully in the services app, you
will see there is even a tab where you can specify what user to "Run As"
the service, which is optional and defults to None...

Pbox