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.old    2005-10-30 18:39:51.000000000 -0800
  +++ PublicRadioFanBrowser.pm  2005-10-30 18:40:03.000000000 -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=mp3&sty=rm&sty=wm";
  +my $nonmusicurl = 
"$directory_url?when=$when\&type=non-music\&sty=mp3&sty=rm&sty=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
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins

Reply via email to