PDA

View Full Version : announcing beta (v0.9) of plugin for Live Music Archive



Dan Aronson
2004-04-09, 14:10
Rob,
What os are you using? Windows perhaps? I've built and tested this on linux. God only knows if perl
non-blocking sockets or errno's work similarly. If this is on windows, my guess is that the ERRNO's might be
different. Do you know?

--dan

dean
2004-04-09, 14:35
I was running on MacOS X, which should behave mostly the same as Linux.

I'll dig a little deeper...


On Apr 9, 2004, at 2:10 PM, Dan Aronson wrote:

> Rob,
> What os are you using? Windows perhaps? I've built and tested this
> on linux. God only knows if perl
> non-blocking sockets or errno's work similarly. If this is on
> windows, my guess is that the ERRNO's might be
> different. Do you know?
>
> --dan
>

dean
2004-04-09, 15:48
Found the problem I was seeing. Apparently, the second time you call
connect() returns an error of EISCON when the first call to connect
succeeds.

Needed this:

492c492
< use Errno qw(EINPROGRESS EALREADY EAGAIN EISCONN);
---
> use Errno qw(EINPROGRESS EALREADY EAGAIN);
576,577c576
<
< if ($ret || EISCONN == $ERRNO) {
---
> if ($ret) {

Working great now. In the absence of a style guide, here are some UI
thoughts...

The top line on the Squeezebox interface usually shows context, the
second line shows current location. When you navigate to the right,
the thing on the second line generally moves to the top line. You do a
lot of this already, but there are a few more details.

So, when you select "Music Archive" on the second from the plugins list
(I renamed this Live Music Archive on my copy), and press right, you
should now see that on the top line:

Live Music Archive (1 of 154)
Acoustic Syndicate ->

We also generally put an arrow on the far right side of the screen on
the second line to indicate when you can navigate into another level,
or put a note symbol when it's a song.

Pressing right again, would scroll into that band's area.

Acoustic Syndicate
2004 ->

Now, sometimes putting just what was on the second line on the top line
isn't enough, so we sometimes add additional context, usually separated
by slashes:

Acoustic Syndicate/2004
Acoustic Syndicate live at Five Points->

Now, it appears that I can't navigate any further, but there are more
tracks below. It would be great if there was another level:

Acoutsic Syndicate live at Five Points (2 of 12)
Better For This (note symbol)

That's the basic idea...

Keep up the good work!

-dean




On Apr 9, 2004, at 2:10 PM, Dan Aronson wrote:

> Rob,
> What os are you using? Windows perhaps? I've built and tested this
> on linux. God only knows if perl
> non-blocking sockets or errno's work similarly. If this is on
> windows, my guess is that the ERRNO's might be
> different. Do you know?
>
> --dan
>