Re: [SlimDevices: Plugins] PublicRadioFanBrowser for 7.0?

2007-12-12 Thread malsbury

Fletch;248364 Wrote: 
 
 Here's a patch that does the following:
 - Eliminate the need for the user to edit Plugin.pm.  Add a settings
 page to select timezone and now/nowsoon.
 - Auto detect if Alien is installed and enable Real.  Default to MP3
 and WM.
 - Clean up some strings.

Fletch,

Thanks for putting this patch together, I've applied it to my personal
copy and it seems to be working well.  It is something that I had
worked on in the past, but never released.  My personal copy of the
0.4.x had a basic web interface that allowed selection of timezone from
a drop down list and format selection through radio buttons. I never got
around to putting it up before life and SC7 got in the way.

I think it is nice that you auto detect Alien, but I think that the
official version of the plugin should default to MP3 only since that is
all that a basic install of SC7 with a Slimp3 or Squeezebox one can
play. Then if someone has a Squeezebox 2/3 they can enable WMA.  

I personally only have Slimp3's and only use Alien to play WMAs, I find
that to many of the Real Streams have problems on my setup.  So I would
like the option of manually turning off Real Streams.

I think the stream selection should be a setting in the web interface
just like the time zone and now/nowsoon options since everyones setup
is different.

-Tom


-- 
malsbury

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

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


Re: [SlimDevices: Plugins] PublicRadioFanBrowser for 7.0?

2007-12-01 Thread malsbury

kdf;240632 Wrote: 
 I've attached a somewhat recently patched up version that should work on
 7.0.
Fletch;240708 Wrote: 
 OK, here's a version that merges Kevin's 7.0 changes and malsbury's
 WMA/Real changes.

I have to thank you both for getting the SC7 version of the
PublicRadioFanBrowser up and running.  I have taken all of the changes
and packaged them up.  There is a official SC7 version of the plugin
now hosted on my page (http://www.malsbury.net/~slim/).  I have also
updated the entry in the SlimWiki to show the new version.

Hopefully this coming year will be a little calmer then the past year.


Thanks again.

-Tom Malsbury


-- 
malsbury

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

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


[SlimDevices: Plugins] Re: PublicRadioFanBrowser plugin doesn't workwith SlimServer 7.0a1 Trunk

2006-10-16 Thread malsbury

Phil Meyer;146114 Wrote: 
 remove use Slim::Control::Command
 
 might have to change Slim::Control::Command::execute($client...) to 
 $client-execute(...)
 
 Done both of those.
 
 I also had to change getDisplayName() to allow version 7.  I tweaked it
 as follows:
 
   $::VERSION =~ /^[67]/ ? 
 
 It appears to be working fine now.
 
 Phil

Thanks for the info. I've been a little busy moving from NJ to MA  and
have not been running the nightlies since 6.5 shipped.  I'll test the
changes and update the plugin accordingly.

--Tom Malsbury


-- 
malsbury

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

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


[SlimDevices: Plugins] Re: how to play Sirius and the BBC on my Mac...

2006-06-27 Thread malsbury

Xhorder Wrote: 
 For Sirius, you need to check off Windows Media  FLAC option (in other
 words, disable the built in WMA decoding and let mplayer do the work)
That would only work if FLAC is installed for slimserver to use to
transcode the WMA into FLAC (which you might since other FLAC
transcoding options are checked).  Since you now have LAME installed
you can also check off the Windows Media  MP3 option. 

If you want to install FLAC to get Sirius in all its low-fi glory
without another round of lossy compression you can get FLAC here:
http://flac.sourceforge.net/download.html

--Tom Malsbury


-- 
malsbury

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

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


[SlimDevices: Plugins] Re: help installing in fedora 3

2006-03-27 Thread malsbury

podder Wrote: 
 I have installed linux fedora core 3 [...]  Which version mplayer should
 I install cvs (20051128) or release (1.0pre7try2)?   I have tried
 installing it with fileroller. It would not install so I had to install
 libmp3lame-3.96. I also installed libmp3lame-devel and
 libmp3lame-static. Then I tried to install live555 as mentioned in one
 of the posts but still no sound.
I had this working on FC3 at while ago, but can't seem to find my notes
now.  I currently have AlienBBC working on a CentOS 4.2 system, which is
Redhat/Fedora based.  The trick for me to get it working on CentOS and I
think also on FC3 was to install the w32codec on its own. I currently
have w32codec-1.0-9.2.el4.mok.i386.rpm installed on my system since I
use the Redhat EL4 repos. The closest one for FC3 that I found is here:
http://tinyurl.com/zj6xp

As for the version of mplayer, I would recommend using the pre7
version.  I am currently successfully using version
mplayer-1.0-52_pre7try3.el4.at.i386.rpm on my system. There is a FC3
version also availavble here: http://tinyurl.com/gqr8n

After you install them, make sure that mplayer can decode RealAudio
streams from the command line before you try and get AlienBBC working
in SlimServer.  

From post
http://forums.slimdevices.com/showpost.php?p=57215postcount=1: 
Code:

* To test that the player works, run the following :
  mplayer rtsp://rmlivev8.bbc.net.uk/farm/*/ev7/live24/radio1/live/r1_dsat_g2.ra
  * You should see it connect and then start to decode; once it prints out
  'Starting playback', you know all's well.



I think that is all that I had to do... Install mplayer pre7, the
w32codecs and extract AlienBBC to the plugins folder. If that doesn't
work for you, let me know and I'll dig a little deeper into my setup
and see if I changed or installed anything else.

--Tom Malsbury

PS: I would recomend installing via YUM instead of Fileroller so you
don't get stuck in dependancy hell.


-- 
malsbury

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

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


[SlimDevices: Plugins] Annouce: Update to PublicRadioFan.com Plugin

2006-03-23 Thread malsbury

I just wanted to post that I have updated the PublicRadioFan.com plugin
so that it can parse and play more then just MP3 streams.  

I had previously posted a patched version that allowed playback of MP3,
Windows Media and Real Audio streams that I had been using thanks to
AlienBBC setting up the stream handling.

This new update adds the stream selection to the Configuration
Section.  Now the user can choose to only retrieve MP3 streams like
all previous versions of the Plugin, or chose MP3 and Windows Media if
they have a Squeezebox2/3 and let all the decoding be handled directly
on the hardware player or chose MP3, Windows Media and Real Audio if
they have a working install of AlienBBC to handle the transcoding on
the server for any generation of hardware player or SoftSqueeze.

Right now the configuration still needs to be done by editing the
plugin.  I am planning on adding a limited WebUI so these settings can
be changed from the SlimServer Setting Page.

The new version and updated installation documents are on my site:

http://www.malsbury.net/~slim/

Please let me know if this works as expected, or if you have any
problems.


--Tom Malsbury


-- 
malsbury

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

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


[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: Playing real audio streams with introduction commercials

2006-02-09 Thread malsbury

Scott Wrote: 
 Can you help me with:
 
 http://www.publicradio.org/tools/media/player/marketplace/2006/02/09_mpp.smil

I found the following link for Marketplace:

rtsp://rchivemedia.publicradio.org/5559/marketplace/2006/02/09_mpp.rm

This is a date dependant url for todays episode. 

Yesterdays is:

rtsp://rchivemedia.publicradio.org/5559/marketplace/2006/02/08_mpp.rm 

And I assume tomorrow's will be: 

rtsp://rchivemedia.publicradio.org/5559/marketplace/2006/02/10_mpp.rm

Scott Wrote: 
 and:
 
 http://tinyurl.com/bmbqh

The url of the stream in that is:

rtsp://archivemedia.publicradio.org/5559/money/2006/02/03_soundmoney.rm

Using the date structure at the end of the url I was able to play last
weeks by changing the url to:

rtsp://archivemedia.publicradio.org/5559/money/2006/01/27_soundmoney.rm

Hope that helps you see where these are coming from. If not let me
know.

--Tom Malsbury


-- 
malsbury

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

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


[SlimDevices: Plugins] Re: How to install HTML:TreeBuilder.pm

2006-01-30 Thread malsbury

ericj Wrote: 
 To answer my opn question, I used synaptic to install libhtml-tree-perl.
 Works for me.  No need to cp to CPAN as far as I can tell.
 PublicRadioFan is awesome, indeed.Would you mind posting a brief summary of 
 your install proccess? 

Just a little write up stating the OS you were using, the problems that
you encountered and the way you solved them. I would like to add your
solutions to the documentation I am gathering on my website for this
plugin. Right now the documentation is a little light on the specifics.
As you stated this is a really great little plugin, and I would hate for
someone not to use it becuase the install documentation was lacking.

--Tom Malsbury


-- 
malsbury

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

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


[SlimDevices: Plugins] Re: How to install HTML:TreeBuilder.pm

2006-01-30 Thread malsbury

ericj Wrote: 
 One possible source of befuddlement:  PRFB shows no effect on the web
 page, that is no entries in the plugin page of server settings, nor is
 it accessible from the web internet radio entries.  The only way to
 detect and use it is either by softsqueeze or a squeezebox.
 
 (BTW, I am assuming that this last paragraph is right, but a
 confirmation from other PRFB users would be welcome.  It might be
 complicated, but a browser interface would be nice)Thanks for the info, I'll 
 add it to the documentation.

As for the lack of a Web UI, that is by design at the request of
PublicRadioFan.com.  It does appear in the Server Setting sub page
for Internet Radio to enable and disable the plugin. But
PublicRadioFan.com did not want their data scraped and presented in
another webpage. 

Please see this post I made in another thread for all of the details:
http://forums.slimdevices.com/showpost.php?p=75612postcount=20

I will add the lack of Web UI to the description, to avoid further
confusion. 

--Tom Malsbury


-- 
malsbury

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

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


[SlimDevices: Plugins] Question about AlienBBC mplayer.sh

2005-12-06 Thread malsbury

I have been using the mplayer.sh that is included with AlienBBC to
stream RealAudio and Windows Media streams without problem.  I was also
glad to see that it would work to transcode local Windows Media files (I
had been using ffmpeg previously).  

It was brought to my attention in another thread that mplayer now can
also handle Apple AAC (Lossy) and ALAC (Lossless) files. I have been
using FAAD2 to transcode AAC files.  

I have a set of files that I use for testing new formats (song.mp3, 
song.wma, song.m4a, lossless_song.m4a, etc)

I added that following line to the slimserver-convert.conf file and as
simple as that, it worked!  Slimserver could play both AAC and ALAC
files from the test folder.


Code:

mov mp3 * *
[mplayer.sh] -really-quiet -vc dummy -vo null -cache 128 -af 
volume=8,resample=44100:0:1,channels=2 -ao pcm:waveheader:file=/dev/fd/3 $FILE$ 
| [lame] --silent -q 1 -b $BITRATE$ - -

I thought, that it was too easy, and it turned out that it is.  When I
tried to play a song from my library, it wouldn't play.  After much
head scratching, I realized the only difference was the file name
structure.  The AAC and ALAC files in my library have spaces in the
title. I renamed the test file that had played as a single name with
spaces and it will no longer play.

I checked with the WMA files that I have, which I have been using
mplayer.sh to play.  They are all single spaced names with no space. 
If I add a space, they no longer play. 

In short:

'song.wma' and 'song.m4a' play with mplayer.sh
'name of song.wma' and 'name of song.m4a' do not play through
mplayer.sh

FAAD2 and ffmpeg had no problem with slimserver passing $FILE$ that had
spaces in the title. And mplayer can play both 'name of song.wma' and
'name of song.m4a' from the command line if I \ the spaces.

I wonder if anyone has an idea why mplayer.sh would fail if $FILE$
contained spaces?  I know there has been an interest in playing ALAC
files on Linux, and this seemed like a simple solution that does work,
with one glaring problem.

--Tom Malsbury


-- 
malsbury

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

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


[SlimDevices: Plugins] Re: Caller display nearly there!

2005-11-21 Thread malsbury

waldy Wrote: 
 I put T3:23:respawn:/sbin/mgetty -x0 -n 2 -s 57600 ttyS1 in inittab file
 then telinit -q the incoming calls are ignored and the debug file is not
 updated.Waldy,

I think I was having a similar problem when I first was setting up Max
great callerid plugin.  I was installing it on a CentOS distro which is
RedHat based like you Fedora system. 

I ended up changing the inittab line a little:
Code:


  # Put a getty on a modem line to monitor after two rings.
  #
  S1:2345:respawn:/sbin/mgetty -x0 -n 2 -s 57600 ttyS1

You can read my full install instructions/experiences in this post:

http://forums.slimdevices.com/showpost.php?p=63114postcount=5

--Tom Malsbury


-- 
malsbury

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

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


[SlimDevices: Plugins] Re: New addon anouncement - Incoming phone call display

2005-11-05 Thread malsbury

max.spicer Wrote: 
 Thanks for the feedback!  I'll add the stuff about CSV_XS and the  cli
 port to the docs.I set up my contacts.cvs and found a UK assumption that you 
 had made in
your code.  US CallerID does not have a leading 0 (zero), it is
displayed as ten digits. A call from (123)555-1212 would be displayed
as 1235551212.  I had to comment out the following part of your code:
Code:

# Add 0 on to front of any number that's missing it (Outlook likes 
to
  # strip leading zeros from numbers, assumedly so it can add the country
  # code at its leisure later on)
  # $fields[$i] =~ s/^([^0].*)/0$1/;

Maybe you should add an option to the setup section asking if the users
CallerID system requires the use of the leading zero to turn on and off
that formatting section.max.spicer Wrote: 
 Please be warned: I think the modem might answer the call if SlimServer
 isn't running!  Again, I haven't had time to look into this properly
 yet, but it's a nasty bug if it's true!I tested this out with SlimServer 
 shutdown, and my modem did not answer
the line.  My answering machine picked up after 4 rings. I turned that
off too, and tried again.  No pickup, just rang and rang... I'll keep
an eye on it though.

--Tom Malsbury


-- 
malsbury

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

___
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-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 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 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 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