Re: Streaming and Playlist.pm

dean blackketter <dean-qV/[email protected]>
Newsgroups gmane.music.equipment.slimp3.dev
Message-ID <a0510100bb8023c0e01d9__19021.9335411259$1045919947@[10.0.1.204]>
Ok, I don't have time right now to fix it, but here are a couple
of observations:

1. I'd bet that the last character is getting trimmed of during
PLS parsing because the file uses DOS character endings. What
platform are you on? What kind of character endings does it
use?

2. The PLS parser only looks a the first entry in the list.
It seems to me that the intent in this list is to go to the second one
if the first one fails. So the PLS parser (openPLS() in
Playlist.pm) should treat it like an M3U playlist in this case.

3. The URLs are indeed illegal and missing the trailing
slash, but we should probably work around that. In the event of
a missing traling slash after the host/port a default slash should
probably be added. Look in openNext() in Playlist.pm.

-dean

Wow...

I've been looking at Playlist.pm for a while and am lost.

Here's my problem:

If I grab a .pls file from shoutcast, it contains looks like this:

[playlist]

File1=http://66.9.105.2:8880

Title1=D I G I T A L L Y - I M P O R T E D - EuroDance & HiNRG -
Finest

imported cheese on the net!

Length1=-1

File2=http://66.9.50.228:8880

Title2=(UK) D I G I T A L L Y - I M P O R T E D - EuroDance &
HiNRG -

Finest imported cheese on the net!

Length2=-1

And so on....

As you can see, the URL doesn't have a
trailing "/" or any other path

info. When I try to use the SliMP3 to
open up the playlist, the server

dies with "Can't open socket to [66.9.105.2:888]: Connection
refused at

lib/SliMP3/Playlist.pm line
358."

So the port is getting trimmed. And, if I stick a warn into the code,
I

see the path getting set to the missing digit.

I've tried quite a few mods but none of them seem to make any
difference.

I'm beginning to wonder if I'm looking at the right part of the code.
Is

it just me or is Playlist.pm a real mess? Much of it seems to be
spent

trying to decide if we're talking about a file or a URL and doing

home-grown regex. URI.pm is definitely the way forward.

Since there are already a few people working on Playlist.pm and
I'm

frustrated with it, I'm going to go outside and enjoy the lovely
day.

--

Amos Hayes

[email protected]

------------------------ Yahoo! Groups Sponsor
---------------------~-->

Pinpoint the right security solution for your company- Learn how to
add 128- bit encryption and to authenticate your web site with
VeriSign's FREE guide!

http://us.click.yahoo.com/yQix2C/33_CAA/yigFAA/rIp0lB/TM

---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:

[email protected]

Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.