PDA

View Full Version : Updating PublicRadioFanBrowser.pm to v6.0?



2005-03-17, 22:01
I know that the PublicRadioFanBrowser.pm is an orphane, but it is a large
part of how my SO uses the Slimp3 in the kitchen and I can only deflect
with the great new features of v6 for so long before she notices it's
missing.

I think it was kdf that updated it from the orginal v4 plugin to make it
work with v5 since its creator was MIA by that point. I know that
everyone is busy ironing out v6 for its release, but if anyone could
update it I (we) would greatly appreciate it.

Tom Malsbury

kdf
2005-03-17, 22:27
Quoting slim (AT) malsbury (DOT) net:

> I know that the PublicRadioFanBrowser.pm is an orphane, but it is a large
> part of how my SO uses the Slimp3 in the kitchen and I can only deflect
> with the great new features of v6 for so long before she notices it's
> missing.
>
> I think it was kdf that updated it from the orginal v4 plugin to make it
> work with v5 since its creator was MIA by that point. I know that
> everyone is busy ironing out v6 for its release, but if anyone could
> update it I (we) would greatly appreciate it.

I will try to add it to my list. i think I know what it needs, but what I need
is some time to actually deal with it.

-kdf

kdf
2005-03-17, 22:53
Quoting slim (AT) malsbury (DOT) net:

> I know that the PublicRadioFanBrowser.pm is an orphane, but it is a large
> part of how my SO uses the Slimp3 in the kitchen and I can only deflect
> with the great new features of v6 for so long before she notices it's
> missing.
>
> I think it was kdf that updated it from the orginal v4 plugin to make it
> work with v5 since its creator was MIA by that point. I know that
> everyone is busy ironing out v6 for its release, but if anyone could
> update it I (we) would greatly appreciate it.

well, turns out I'm so busy and sleepless that I forgot I fixed this already.
it available here and should work with latest builds of 6.0:

http://www.deane-freeman.com/slimserver/

-kdf

2005-03-18, 03:31
> Quoting slim (AT) malsbury (DOT) net:
>>
>> I think it was kdf that updated it from the orginal v4 plugin to make
>> it work with v5 since its creator was MIA by that point. I know that
>> everyone is busy ironing out v6 for its release, but if anyone could
>> update it I (we) would greatly appreciate it.
>
> well, turns out I'm so busy and sleepless that I forgot I fixed this
> already. it available here and should work with latest builds of 6.0:
>
> http://www.deane-freeman.com/slimserver/
>
> -kdf

Well that is about as quick as response as I could have every hoped for.
And it seems to be working fine. It appears in the 'Plugins' menu which is
fine once I found it, it used to appear in the 'Internet Radio' menu. It
seems like it should be added when these items are during startup.

2005-03-18 05:03:41.1336 Adding Picks to menu: RADIO
2005-03-18 05:03:41.1343 Adding ShoutcastBrowser to menu: RADIO
2005-03-18 05:03:41.1349 Adding RadioIO to menu: RADIO
2005-03-18 05:03:41.1355 Adding Alien::Plugin to menu: RADIO
2005-03-18 05:03:41.1360 Adding Live365 to menu: RADIO

This is not a deal breaker in anyway. I thank you for your time in
getting it this far (and functional). If you could just put it on the
bottom of your to-do list, that would be great.

Tom Malsbury

kdf
2005-03-18, 13:26
Quoting slim (AT) malsbury (DOT) net:

> > Quoting slim (AT) malsbury (DOT) net:
> >>
> >> I think it was kdf that updated it from the orginal v4 plugin to make
> >> it work with v5 since its creator was MIA by that point. I know that
> >> everyone is busy ironing out v6 for its release, but if anyone could
> >> update it I (we) would greatly appreciate it.
> >
> > well, turns out I'm so busy and sleepless that I forgot I fixed this
> > already. it available here and should work with latest builds of 6.0:
> >
> > http://www.deane-freeman.com/slimserver/
> >
> > -kdf
>
> Well that is about as quick as response as I could have every hoped for.
> And it seems to be working fine. It appears in the 'Plugins' menu which is
> fine once I found it, it used to appear in the 'Internet Radio' menu. It
> seems like it should be added when these items are during startup.
>
> 2005-03-18 05:03:41.1336 Adding Picks to menu: RADIO
> 2005-03-18 05:03:41.1343 Adding ShoutcastBrowser to menu: RADIO
> 2005-03-18 05:03:41.1349 Adding RadioIO to menu: RADIO
> 2005-03-18 05:03:41.1355 Adding Alien::Plugin to menu: RADIO
> 2005-03-18 05:03:41.1360 Adding Live365 to menu: RADIO
>
> This is not a deal breaker in anyway. I thank you for your time in
> getting it this far (and functional). If you could just put it on the
> bottom of your to-do list, that would be great.
>

just add this:

sub addMenu {
return "RADIO";
}


-kdf

2005-03-18, 16:37
> just add this:
>
> sub addMenu {
> return "RADIO";
> }
>
>
> -kdf

Well that did the trick nicely.

Thanks again.

Tom Malsbury

kdf
2005-03-18, 16:46
Quoting slim (AT) malsbury (DOT) net:

>
> > just add this:
> >
> > sub addMenu {
> > return "RADIO";
> > }
> >
> >
> > -kdf
>
> Well that did the trick nicely.
>
> Thanks again.

np... I love the easy requests :) I'll post a version with that change at some
point over the weekend.

-kdf

Ben Sandee
2005-03-18, 17:25
Strange -- I tried to use this plugin unsuccessfully. I'm just did a
clean svn up so maybe it's something with the latest build. Here's
the errors I get:

When I go to the plugin I get "Programs for Music (1 of 0)" and if I
"push" it and hit the right arrow here I crash the server with the
error below. Any ideas? Maybe I missed a setup step or something.

Ben

Use of uninitialized value in subtraction (-) at
/home/tsandee/slimserver_svn/trunk/server/Plugins/PublicRadioFanBrowser.pm
line 168.
Use of uninitialized value in subtraction (-) at
/home/tsandee/slimserver_svn/trunk/server/Plugins/PublicRadioFanBrowser.pm
line 168.
Use of uninitialized value in subtraction (-) at
/home/tsandee/slimserver_svn/trunk/server/Plugins/PublicRadioFanBrowser.pm
line 168.
Use of uninitialized value in subtraction (-) at
/home/tsandee/slimserver_svn/trunk/server/Plugins/PublicRadioFanBrowser.pm
line 168.
Use of uninitialized value in subtraction (-) at
/home/tsandee/slimserver_svn/trunk/server/Plugins/PublicRadioFanBrowser.pm
line 168.
Use of uninitialized value in subtraction (-) at
/home/tsandee/slimserver_svn/trunk/server/Plugins/PublicRadioFanBrowser.pm
line 168.
Use of uninitialized value in subtraction (-) at
/home/tsandee/slimserver_svn/trunk/server/Plugins/PublicRadioFanBrowser.pm
line 168.
Use of uninitialized value in subtraction (-) at
/home/tsandee/slimserver_svn/trunk/server/Plugins/PublicRadioFanBrowser.pm
line 168.
Use of uninitialized value in subtraction (-) at
/home/tsandee/slimserver_svn/trunk/server/Plugins/PublicRadioFanBrowser.pm
line 168.
Use of uninitialized value in subtraction (-) at
/home/tsandee/slimserver_svn/trunk/server/Plugins/PublicRadioFanBrowser.pm
line 168.
Use of uninitialized value in subtraction (-) at
/home/tsandee/slimserver_svn/trunk/server/Plugins/PublicRadioFanBrowser.pm
line 168.
Use of uninitialized value in pattern match (m//) at
/home/tsandee/slimserver_svn/trunk/server/Plugins/PublicRadioFanBrowser.pm
line 425.
Use of uninitialized value in subtraction (-) at
/home/tsandee/slimserver_svn/trunk/server/Plugins/PublicRadioFanBrowser.pm
line 168.
Can't call method "parent" on an undefined value at
/home/tsandee/slimserver_svn/trunk/server/Plugins/PublicRadioFanBrowser.pm
line 460.

kdf
2005-03-18, 17:42
Quoting Ben Sandee <tbsandee (AT) gmail (DOT) com>:

> Strange -- I tried to use this plugin unsuccessfully. I'm just did a
> clean svn up so maybe it's something with the latest build. Here's
> the errors I get:
>
> When I go to the plugin I get "Programs for Music (1 of 0)" and if I
> "push" it and hit the right arrow here I crash the server with the
> error below. Any ideas? Maybe I missed a setup step or something.

c:\program files\slimserver\server\slim.exe --d_plugins

I'm sure you will find that you have some missing modules.

this plugin requires HTML::Treebuilder, which is not included with the server
and may need to be compiled for your platform.

download activePerl, or use a platform with native perl like osx or linux.

-kdf

Ben Sandee
2005-03-18, 21:06
> c:\program files\slimserver\server\slim.exe --d_plugins
>
> I'm sure you will find that you have some missing modules.
>
> this plugin requires HTML::Treebuilder, which is not included with the server
> and may need to be compiled for your platform.
>
> download activePerl, or use a platform with native perl like osx or linux.

kdf,

It's a Debian testing box that used to run the 5.x version of that
plugin just fine. I checked that specific module that you mentioned
but it's already installed (likely because I needed it for the 5.x
version of the plugin):

cedar:/var/log# apt-get install libhtml-tree-perl
Reading Package Lists... Done
Building Dependency Tree... Done
libhtml-tree-perl is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Running the server with --d_plugins doesn't shed any light on it --
publicradiofan appears to startup just fine. It's only when I
navigate to the plugin that the errors occur. Any other -d_ flags to
try?

Maybe I'll try with a clean, non-svn image.

Thanks for your help.

Ben

kdf
2005-03-19, 02:21
Quoting Ben Sandee <tbsandee (AT) gmail (DOT) com>:

> > c:\program files\slimserver\server\slim.exe --d_plugins
> >
> > I'm sure you will find that you have some missing modules.
> >
> > this plugin requires HTML::Treebuilder, which is not included with the
> server
> > and may need to be compiled for your platform.
> >
> > download activePerl, or use a platform with native perl like osx or linux.
>
> kdf,
>
> It's a Debian testing box that used to run the 5.x version of that
> plugin just fine. I checked that specific module that you mentioned
> but it's already installed (likely because I needed it for the 5.x
> version of the plugin):
>
> cedar:/var/log# apt-get install libhtml-tree-perl
> Reading Package Lists... Done
> Building Dependency Tree... Done
> libhtml-tree-perl is already the newest version.
> 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
>
> Running the server with --d_plugins doesn't shed any light on it --
> publicradiofan appears to startup just fine. It's only when I
> navigate to the plugin that the errors occur. Any other -d_ flags to
> try?
>
> Maybe I'll try with a clean, non-svn image.

hrm... --d_remotestream maybe?? I've given it an online home, but I rarely
actually use it, so I can't really offer much other advice. The error you
mentioned seem to indicate that a required class wasn't workign right usually
that is due to a bad module for that class.

maybe running with perl -d will help shed some light.

-kdf

Ben Sandee
2005-03-20, 16:03
On Sat, 19 Mar 2005 01:21:07 -0800, kdf <slim-mail (AT) deane-freeman (DOT) com> wrote:
> hrm... --d_remotestream maybe?? I've given it an online home, but I rarely
> actually use it, so I can't really offer much other advice. The error you
> mentioned seem to indicate that a required class wasn't workign right usually
> that is due to a bad module for that class.
>
> maybe running with perl -d will help shed some light.
>

OK finally figured this out -- USER ERROR! I had an invalid
HTTP_PROXY environment variable set and apparently the ONLY app I ever
use that uses that is this plugin. I enabled the debug lines that are
commented out in the publicradiofan plugin.pm file and it was quickly
evident that the request wasn't being processed correctly.

Anyway, works great now -- thanks for your help! SlimServer 6.0 is
looking GREAT!

Ben