[SlimDevices: Plugins] Re: Req: Update to PublicRadioFanBrowser ?

2006-03-12 Thread malsbury

kanoot Wrote: 
 toobiloo,
 
 the easiest thing to do for getting these is to open up the Terminal
 and use cpan: type sudo cpan in the terminal (no quotes).
 
 The first time you type this it will ask you a series of questions -
 for most of these simply hit enter as the default is correct. The only
 ones you really want to worry about are the mirror questions - try to
 pick servers near your physical location.
 
 After it is done with the questions you will get a prompt that says
 cpan - all you have to do is type install HTML::TreeBuilder - and
 it will do so. Then install HTTP::Cookies and it will do that. then
 type quit and you are done.
 
 Before you go through this trouble, please make sure you have the Apple
 Development tools installed (Xcode package on your OS X install disk) or
 none of this will work.
I'll add this to the OS X setup tips for the PublicRadioFan Plugin at
http://www.malsbury.net/~slim

Thanks for the info.

--Tom Malsbury


-- 
malsbury

malsbury's Profile: http://forums.slimdevices.com/member.php?userid=57
View this thread: http://forums.slimdevices.com/showthread.php?t=17658

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/plugins


[SlimDevices: Plugins] Re: Req: Update to PublicRadioFanBrowser ?

2006-03-11 Thread toobiloo

malsbury Wrote: 
 Most people that are successfully running this plugin are running it on
 linux or OSX.  It requires two addition Perl modules that are not
 included in the standard window .exe build of Slimserver.  Specifically
 HTML::Treebuilder and HTTP::Cookies.  These are easy enough to install
 on a Linux system, but present more of a problem when Slimserver is
 running under Windows. 
 
 Tom Malsbury


I'm running OS X 10.4.5  Where exactly do I look for these or d/l them
from?


-- 
toobiloo

toobiloo's Profile: http://forums.slimdevices.com/member.php?userid=4337
View this thread: http://forums.slimdevices.com/showthread.php?t=17658

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/plugins


[SlimDevices: Plugins] Re: Req: Update to PublicRadioFanBrowser ?

2006-03-11 Thread kanoot

toobiloo Wrote: 
 I'm running OS X 10.4.5  Where exactly do I look for these or d/l them
 from?


toobiloo,

the easiest thing to do for getting these is to open up the Terminal
and use cpan: type sudo cpan in the terminal (no quotes).

The first time you type this it will ask you a series of questions -
for most of these simply hit enter as the default is correct. The only
ones you really want to worry about are the mirror questions - try to
pick servers near your physical location.

After it is done with the questions you will get a prompt that says
cpan - all you have to do is type install HTML::TreeBuilder - and
it will do so. Then install HTTP::Cookies and it will do that. then
type quit and you are done.

Before you go through this trouble, please make sure you have the Apple
Development tools installed (Xcode package on your OS X install disk) or
none of this will work.


-- 
kanoot

kanoot's Profile: http://forums.slimdevices.com/member.php?userid=4324
View this thread: http://forums.slimdevices.com/showthread.php?t=17658

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/plugins


[SlimDevices: Plugins] Re: Req: Update to PublicRadioFanBrowser ?

2005-10-31 Thread malsbury

Mike Anderson Wrote: 
 I'll give it a try in the morning.Actually, I just cleaned up the comments 
 section to explain the changes
made and added some version history to it. So please download the new
attachment and give it a try.

This revised PublicRadioFanBrowser.pm Plugin requires that you have
AlienBBC working on your system. Let me know how it works for you.

-- Tom Malsbury


+---+
|Filename: PublicRadioFanBrowser.zip|
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=450|
+---+

-- 
malsbury
___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/plugins


[SlimDevices: Plugins] Re: Req: Update to PublicRadioFanBrowser ?

2005-10-31 Thread Mike Anderson

Yup, it works - thanks for your time, both of you.
Mike


-- 
Mike Anderson

'FREE RADICAL 
RADIO!' (http://nvo.com/cd)  Hours of free radical MP3s.
___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/plugins


Re: [SlimDevices: Plugins] Re: Req: Update to PublicRadioFanBrowser ?

2005-10-30 Thread Jack Coates

Mike Anderson wrote:

I'm not seeing anything at all. 


I put the file in the plugins directory, and restarted SlimServer, but
it doesn't seem to show up anywhere.

I should add that I'm running on Windows XP, if that makes any
difference.


 

Check the logfile and see if it's even loading. I seem to recall that 
using plugins on Windows requires that you use the perl script version 
instead of the .exe version...


--
Jack At Monkeynoodle Dot Org: It's A Scientific Venture!
I spent all me tin with the ladies drinking gin
so across the Western ocean I must wander -- trad.

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/plugins


[SlimDevices: Plugins] Re: Req: Update to PublicRadioFanBrowser ?

2005-10-30 Thread Mike Anderson

Where's the log file?

Also, isn't that the perl script version, in the link above?   I've
done this with other perl script plugins, and they work fine.


-- 
Mike Anderson

'FREE RADICAL 
RADIO!' (http://nvo.com/cd)  Hours of free radical MP3s.
___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/plugins


Re: [SlimDevices: Plugins] Re: Req: Update to PublicRadioFanBrowser ?

2005-10-30 Thread Jack Coates

Mike Anderson wrote:


Where's the log file?

Also, isn't that the perl script version, in the link above?   I've
done this with other perl script plugins, and they work fine.


 

I'm not sure where it is on Windows -- I'd guess either in your %TEMP% 
or in the Program Files location.


What link above? Not sure what you're talking about.

--
Jack At Monkeynoodle Dot Org: It's A Scientific Venture!
I spent all me tin with the ladies drinking gin
so across the Western ocean I must wander -- trad.

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/plugins


Re: [SlimDevices: Plugins] Re: Req: Update to PublicRadioFanBrowser ?

2005-10-30 Thread Jack Coates

Mike Anderson wrote:


In the first post I put a link to the perl script for this plugin.


 

ah, I was talking about using the perl scripts slimserver bundle versus 
using the slimserver.exe


--
Jack At Monkeynoodle Dot Org: It's A Scientific Venture!
I spent all me tin with the ladies drinking gin
so across the Western ocean I must wander -- trad.

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/plugins


[SlimDevices: Plugins] Re: Req: Update to PublicRadioFanBrowser ?

2005-10-30 Thread Mike Anderson

Well I'm not finding any log files in the locations you mentioned.  If a
Windows user knows where it is or what it's called, let us know.

thanks,
Mike


-- 
Mike Anderson

'FREE RADICAL 
RADIO!' (http://nvo.com/cd)  Hours of free radical MP3s.
___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/plugins


[SlimDevices: Plugins] Re: Req: Update to PublicRadioFanBrowser ?

2005-10-30 Thread malsbury

Mike Anderson Wrote: 
 I'm not seeing anything at all. 
 
 I put the file in the plugins directory, and restarted SlimServer, but
 it doesn't seem to show up anywhere.
 
 I should add that I'm running on Windows XP, if that makes any
 difference.

That makes all the difference.  Most people that are successfully
running this plugin are running it on linux or OSX.  It requires two
addition Perl modules that are not included in the standard window .exe
build of Slimserver.  Specifically HTML::Treebuilder and HTTP::Cookies. 
These are easy enough to install on a Linux system, but present more of
a problem when Slimserver is running under Windows.  

The first step is going to be installing something like ActiveState's
perl distribution for Windows and runing Slimserver directly from the
slimserver.pl script.  Next you will have to look at the errors given
during startup stating which modules were not found. Then you will have
to install them.  I know this was attempted last year with limited
success.  You can read the thread on the old archives at:

http://lists.slimdevices.com/archives/discuss/2004-November/037991.html

I know this wasn't the quick easy fix you were probably hoping for, but
at least you know that you are not the only one to have this problem.  

I would recommend trying to get it working, its one of my favorite ways
to use my SliMP3s.

If you have any other questions, I'll be glad to try and help.

Tom Malsbury


-- 
malsbury
___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/plugins


[SlimDevices: Plugins] Re: Req: Update to PublicRadioFanBrowser ?

2005-10-30 Thread Mike Anderson

Aha.  Excellent, thanks.  I actually already have ActivePerl installed,
so maybe I'll give it a try.

Although reading the thread you posted, it looks like the other person
only got as far as getting it loaded;  actually trying to use it
crashed the server.


-- 
Mike Anderson

'FREE RADICAL 
RADIO!' (http://nvo.com/cd)  Hours of free radical MP3s.
___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/plugins


[SlimDevices: Plugins] Re: Req: Update to PublicRadioFanBrowser ?

2005-10-30 Thread Mike Anderson

Hey!  I did everything in that thread you posted, and it WORKS!  Whaddya
know!

Perhaps the other poster did not already have Alien BBC installed (in
which case, I assume he could not have played Real Audio streams).

Yet again, this device (and all the software for it) blows me away.

Thanks for the pointer, that was very helpful!


-- 
Mike Anderson

'FREE RADICAL 
RADIO!' (http://nvo.com/cd)  Hours of free radical MP3s.
___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/plugins


[SlimDevices: Plugins] Re: Req: Update to PublicRadioFanBrowser ?

2005-10-30 Thread malsbury

Mike Anderson Wrote: 
 Hey!  I did everything in that thread you posted, and it WORKS!  Whaddya
 know!
 
 Perhaps the other poster did not already have Alien BBC installed (in
 which case, I assume he could not have played Real Audio streams).
 
 Yet again, this device (and all the software for it) blows me away.
 
 Thanks for the pointer, that was very helpful!

Glad to hear that you got it working. There are a few options that you
can set in the plugin code itself.  You need to set your time zone and
whether it looks for progams currently playing or also include shows
that are going to start shortly.  Just edit out the # for your time
zone and edit out the # in the now / nowsoon section to make your
choice.

As it stands, the PublicRadioFan plugin only searches the site for
stations that are streaming in a MP3 format.  When the plugin was
written that was all SlimServer was able to play in a streamed format. 
I am currently working on updating it to also parse out RealAudio and
WindowsMedia streams since they can now be played as well.  

I have a rough hack in place where it can parse out and play either
MP3, WM or RA stream. The only problem is that the plugin, as written,
can only look for one format type at a time.  I don't have enough perl
skills yet to alter the code to look for multiple format type
simultaneously. 

If anyone would like to give me a hand with it, I'll take all the help 
Ican get.  I wrote to the original author of the plugin, but haven't
heard back.

--Tom Malsbury


-- 
malsbury
___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/plugins


[SlimDevices: Plugins] Re: Req: Update to PublicRadioFanBrowser ?

2005-10-30 Thread Mike Anderson

Oh, BTW, what's the hack for streaming other formats?


-- 
Mike Anderson

'FREE RADICAL 
RADIO!' (http://nvo.com/cd)  Hours of free radical MP3s.
___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/plugins


[SlimDevices: Plugins] Re: Req: Update to PublicRadioFanBrowser ?

2005-10-30 Thread malsbury

Mike Anderson Wrote: 
 Oh, BTW, what's the hack for streaming other formats?

To play WindowsMedia Stream I make the following changes:

where it says:

my $musicurl = $directory_url?when=$when\type=music\sty=mp3;
my $nonmusicurl =
$directory_url?when=$when\type=non-music\sty=mp3;

Change To:

my $musicurl = $directory_url?when=$when\type=music\sty=wm;
my $nonmusicurl =
$directory_url?when=$when\type=non-music\sty=wm;

Where it says:

if ($showwalker-look_down('alt','[MP3]'))

Change To:

if ($showwalker-look_down('alt','[WM]'))

To play RealAudio, the change is to sty=ra and [RA]

You will need to restart SlimServer after the changes.  I generally
keep mine set to WindowsMedia since all of my local NPRs stream that
way. 

This change will play about 90% of the streams it parses out since some
stream urls are wrapped in a playlist.  If you pick one of these
streams it won't crash, it simply wont start the stream.  I then just
move on an pick another station that is streaming the show in
question.

--Tom Malsbury


-- 
malsbury
___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/plugins


[SlimDevices: Plugins] Re: Req: Update to PublicRadioFanBrowser ?

2005-10-30 Thread Mike Anderson

Cool, thanks.  Can I just make three different perl scripts, and install
them as three different plugins all at once, or would that cause a
problem?

Thanks,
Mike


-- 
Mike Anderson

'FREE RADICAL 
RADIO!' (http://nvo.com/cd)  Hours of free radical MP3s.
___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/plugins


[SlimDevices: Plugins] Re: Req: Update to PublicRadioFanBrowser ?

2005-10-30 Thread Fletch

malsbury Wrote: 
 I have a rough hack in place where it can parse out and play either MP3,
 WM or RA stream. The only problem is that the plugin, as written, can
 only look for one format type at a time.  I don't have enough perl
 skills yet to alter the code to look for multiple format type
 simultaneously.

Try this:

Code:

--- PublicRadioFanBrowser.pm.old2005-10-30 18:39:51.0 -0800
  +++ PublicRadioFanBrowser.pm  2005-10-30 18:40:03.0 -0800
  @@ -90,8 +90,8 @@
  my @genres = ('Music','Non-Music');
  my @programs;
  
  -my $musicurl = $directory_url?when=$when\type=music\sty=mp3;
  -my $nonmusicurl = $directory_url?when=$when\type=non-music\sty=mp3;
  +my $musicurl = 
$directory_url?when=$when\type=music\sty=mp3sty=rmsty=wm;
  +my $nonmusicurl = 
$directory_url?when=$when\type=non-music\sty=mp3sty=rmsty=wm;
  
  my $file_timeout = 600; #in seconds
  my $force_reload = 1;
  @@ -499,7 +499,7 @@
($stationname) = 
($showwalker-as_text =~ /\s*(\S*)\s*/);
$stationstreamcount = 0;
}
  - if 
($showwalker-look_down('alt','[MP3]')) {
  + if 
(($showwalker-look_down('alt','[Real]')) || 
($showwalker-look_down('alt','[WM]')) || 
($showwalker-look_down('alt','[MP3]'))) {
my @streamlinks = 
$showwalker-extract_links('a');
$stationstreamcount++;
my $textline2 = $stationname;
  



-- 
Fletch
___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/plugins


Re: [SlimDevices: Plugins] Re: Req: Update to PublicRadioFanBrowser ?

2005-10-30 Thread Jack Coates

Mike Anderson wrote:


Yes, I figured out that part about the timezone and now vs. nowsoon.

I was just about to ask you why only a subset of the possible shows
show up on my player, but you've already answered my question. 
Nonetheless, I like it.


Clearly, I need to learn perl.  I used to be OK with C, once upon a
time, so it shouldn't be too hard?
 



Not nearly as hard as C. I will warn you that the Slim Devices code is 
over my head though... I'm reasonably proficient at the average 'connect 
to a database and munge some data' type of script, but quickly ran into 
trouble trying to work with Slimserver plugins. I figure I'm going to 
have to use the CLI to do any extensions I want to do.


--
Jack At Monkeynoodle Dot Org: It's A Scientific Venture!
I spent all me tin with the ladies drinking gin
so across the Western ocean I must wander -- trad.

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/plugins


[SlimDevices: Plugins] Re: Req: Update to PublicRadioFanBrowser ?

2005-10-30 Thread malsbury

Fletch Wrote: 
 Try this:Well that works great!  I should have asked sooner if I new I would 
 get
a fix in under an hour 

Now we just have to figure out a way to weed out the streams that are
wrapped and don't start playback like the following:

Right now PublicRadioFan.com offers WindowsMedia streams in two
formats:

A direct link: http://www.wcny.org/classicfm/fmtuner/fm.asx (which
plays directly)

A wrapped link: 
http://publicradiofan.com/cgi-bin/wrap.pl?s=mms://media.gtc.edu:8080/
You need to pull out the last part of the link
(mms://media.gtc.edu:8080/) which will play directly.

PublicRadioFan.com offers RealAudio streams in two formats as well:

A direct link:  http://woub.org/radio/amlive.ram

A wrapped link:  
http://publicradiofan.com/cgi-bin/wrap.pl?s=rtsp://129.237.213.240/kanu/kanu.smil

I haven't gotten any of the wrapped rtsp streams to play yet.

Either way, thanks for the addition to the code.

--Tom Malsbury


-- 
malsbury
___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/plugins


[SlimDevices: Plugins] Re: Req: Update to PublicRadioFanBrowser ?

2005-10-30 Thread Mike Anderson

^^ Thanks Malsbury, I'll give it a try in the morning.


-- 
Mike Anderson

'FREE RADICAL 
RADIO!' (http://nvo.com/cd)  Hours of free radical MP3s.
___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/plugins