INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: 9O3q1NJ9eyz42Jf9 -- Filename (path) bug  (Read 3759 times)

9O3q1NJ9eyz42Jf9

  • Regular Member
  • Recent member
  • *
  • Posts: 35
9O3q1NJ9eyz42Jf9 -- Filename (path) bug
« on: February 09, 2004, 08:42:21 pm »

Bug: Trailing slash is added to end of URLs that appear in a playlist.

To reproduce: Try modifying the "Filename (path)" field of a playlist entry to point it to a PLS playlist file (such as http://radiost.sc.llnwd.net:12570/listen.pls).  Media Center will not let it be changed to this:

http://radiost.sc.llnwd.net:12570/listen.pls

But rather forces a trailing slash on the end, and makes the URL invalid, as follows:

http://radiost.sc.llnwd.net:12570/listen.pls/

If you separately set the path to be http://radiost.sc.llnwd.net:12570/ and the file name to be listen.pls, the stream still will not load.
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42373
  • Shoes gone again!
Re:9O3q1NJ9eyz42Jf9 -- Filename (path) bug
« Reply #1 on: February 10, 2004, 04:50:15 pm »

Filename (path) is for editing the path part, so if you add the actual name here (listen.pls) you'll goof it up.

Is that the problem or is there something else?  Can you give a step-by-step?
Logged
Matt Ashland, JRiver Media Center

9O3q1NJ9eyz42Jf9

  • Regular Member
  • Recent member
  • *
  • Posts: 35
Re:9O3q1NJ9eyz42Jf9 -- Filename (path) bug
« Reply #2 on: February 12, 2004, 01:16:19 am »

Sure.  There are two approaches to reproducing the same problem.

I will use the following URL, which points to a remote playlist (a PLS file), as an example:

http://radiost.sc.llnwd.net:12500/listen.pls

If I simply use my browser to click that URL, it loads in MC and plays fine.  However, if I do a File > "Open URL..." in MC on the same URL, I get the following error:

[image deleted by 9O3q1NJ9eyz42Jf9]

When that error occurs, I have the following field values showing in Playing Now, from when MC tried to open that stream:

Filename:
http://radiost.sc.llnwd.net:12500/listen.pls

Filename (path):
http://radiost.sc.llnwd.net:12500/

Filename (name):
listen.pls

I see nothing wrong with the above field values.  The path is correct when set to "http://radiost.sc.llnwd.net:12500/", and the remote file name is indeed "listen.pls".

The same thing happens if you have a local playlist in MC, and you want to add the PLS-file URL to that playlist.  If you set the "Filename" field to "http://radiost.sc.llnwd.net:12500/listen.pls" (without quotes, of course), the error dialog shown above occurs.

The stream will work if the "Filename" field is set to "http://radiost.sc.llnwd.net:12500/~~~stream~~~.mp3", but shouldn't the "Open URL" function be able to load the PLS file directly?

The actual contents of the PLS file are as follows:

Quote
[playlist]
NumberOfEntries=1
File1=http://radiost.sc.llnwd.net:12500/

But what would you set the "Filename" field value to in order to add this URL:

http://wazee.org/128.pls

...which has this as the content of the PLS file:

Quote
[playlist]
File1=http://shoutcast.wazee.org:8000
Title1=[radio.wazee] 128k (SHOUTCAST)
Length1=-1
File2=http://yourlocalscene.wazee.org:8020
Title2=[radio.wazee] 128k (YOURLOCALSCENE)
Length2=-1
File3=http://fast-serv.wazee.org:8206
Title3=[radio.wazee] 128k (FAST-SERV)
Length3=-1
File4=http://fast-serv2.wazee.org:8208
Title4=[radio.wazee] 128k (FAST-SERV2)
Length4=-1
File5=http://linkexp.wazee.org:8000
Title5=[radio.wazee] 128k (LINKEXP)
Length5-1
File6=http://linsam.wazee.org:8080
Title6=[radio.wazee] 128k (LINSAM)
Length6=-1
File7=http://shoutcast.wazee.org:8000
Title7=[radio.wazee] 128k (SHOUTCAST)
Length7=-1
NumberOfEntries=7
Version=2

...?

Using "http://wazee.org/~~~stream~~~.mp3" doesn't work, of course.

Strangely, doing a "File > Open URL..." on http://wazee.org/128.pls does work, but setting "Filename" to http://wazee.org/128.pls does not (the above "Unknown Error" occurs).  I'm confused.

I guess what it boils down to is that you can use MC to point to individual remote streams, but you can't use MC to point to remote PLS files.  But PLS files can refer to more than one remote stream, and there's no way I want to add each stream to my playlist, as opposed to the one PLS file that represents them all.
Logged

Nikolay

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1681
  • Former CTO, JRiver, Inc.
Re:9O3q1NJ9eyz42Jf9 -- Filename (path) bug
« Reply #3 on: February 12, 2004, 08:35:45 am »

9O3q1NJ9eyz42Jf9 ,

How are you opening the steams? Are you entering them manually into the list?

To successfully play streams use the following two ways:
1) Go to menu File->Open URL, and enter the URL of the stream you want to play.
2) Click on the link for a station on a web page.

Nikolay
Logged

9O3q1NJ9eyz42Jf9

  • Regular Member
  • Recent member
  • *
  • Posts: 35
Re:9O3q1NJ9eyz42Jf9 -- Filename (path) bug
« Reply #4 on: February 12, 2004, 01:06:26 pm »

Like I mentioned above, doing File > Open URL doesn't work for all PLS files (such as the one below).

http://radiost.sc.llnwd.net:12500/listen.pls

When I try a File > Open URL on that remote PLS file, I get an "unknown error".  When I try to manually set a "Filename" to the above URL, the same thing happens.  This is happening with MC 10.0.67.
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42373
  • Shoes gone again!
Re:9O3q1NJ9eyz42Jf9 -- Filename (path) bug
« Reply #5 on: February 12, 2004, 01:32:49 pm »

Quote
http://radiost.sc.llnwd.net:12500/listen.pls

That works for us.  You may have network or firewall problems.
Logged
Matt Ashland, JRiver Media Center

xen-uno

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 2489
  • Checking your hard disk for errors...
Re:9O3q1NJ9eyz42Jf9 -- Filename (path) bug
« Reply #6 on: February 12, 2004, 01:42:04 pm »

When I click on 903's link (with FireFox and the Download Statusbar extension), it opens MC and brings it to the front...but doesn't play. The *.pls shows up in the DS bar and when I right click on the marker and open it, MC plays the stream just fine. This could be a FF browser prob.

10-27

9O3q1NJ9eyz42Jf9

  • Regular Member
  • Recent member
  • *
  • Posts: 35
Re:9O3q1NJ9eyz42Jf9 -- Filename (path) bug
« Reply #7 on: February 12, 2004, 01:46:54 pm »

Quote
http://radiost.sc.llnwd.net:12500/listen.pls

That works for us.  You may have network or firewall problems.

It works for me when I click the link in my browser, too.  But does it work for you when you copy it to the clipboard, then do a File > Open URL in Media Center?
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42373
  • Shoes gone again!
Re:9O3q1NJ9eyz42Jf9 -- Filename (path) bug
« Reply #8 on: February 12, 2004, 01:48:21 pm »

Quote
But does it work for you when you copy it to the clipboard, then do a File > Open URL in Media Center?

Yes.

Anyone else?
Logged
Matt Ashland, JRiver Media Center

9O3q1NJ9eyz42Jf9

  • Regular Member
  • Recent member
  • *
  • Posts: 35
Re:9O3q1NJ9eyz42Jf9 -- Filename (path) bug
« Reply #9 on: February 12, 2004, 01:59:31 pm »

Once you do the File > Open URL on it, and it appears in playing now as follows:

http://radiost.sc.llnwd.net:12500/~~~stream~~~.mp3

Are you able to change the Filename to "http://radiost.sc.llnwd.net:12500/listen.pls", and still have it work afterward?  When I do that, and try opening it, I get the "Unknown Error"--even though the "Filename" looks just fine.

I swear I am not making this stuff up!
Logged

xen-uno

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 2489
  • Checking your hard disk for errors...
Re:9O3q1NJ9eyz42Jf9 -- Filename (path) bug
« Reply #10 on: February 12, 2004, 02:01:41 pm »

Works fine here done that way

9O3q1NJ9eyz42Jf9

  • Regular Member
  • Recent member
  • *
  • Posts: 35
Re:9O3q1NJ9eyz42Jf9 -- Filename (path) bug
« Reply #11 on: February 12, 2004, 02:04:34 pm »

I am wondering if this is the problem:

* Once the stream is playing, the file name is treated as "~~~stream~~~.mp3".

* If you then change the "Filename" to point it to the original PLS file, the "File Type" field still says "mp3", and cannot be changed.  The "Filename (name)" and "File Type" fields actually disagree with each other.

[image deleted by 9O3q1NJ9eyz42Jf9]
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42373
  • Shoes gone again!
Re:9O3q1NJ9eyz42Jf9 -- Filename (path) bug
« Reply #12 on: February 12, 2004, 02:07:58 pm »

The pls file is just a text file with an mp3 stream URL in it.  We don't store that playlist, but instead store the stream URL. (the thing with ~~~stream~~~.mp3)

So, you can't enter a pls as a filename because it isn't a playable file.  Leave the ~~~stream~~~.mp3 part there and everything should work.
Logged
Matt Ashland, JRiver Media Center

9O3q1NJ9eyz42Jf9

  • Regular Member
  • Recent member
  • *
  • Posts: 35
Re:9O3q1NJ9eyz42Jf9 -- Filename (path) bug
« Reply #13 on: February 12, 2004, 02:10:26 pm »

What about PLS files that point to several streams (for redundancy)?  I have to add each entry as a ~~~stream~~~.mp3 file?  Using my http://wazee.org/128.pls example above, I'd have to add seven playlist entries for that?

That would mean that if two of those seven servers were dead, you could end up having to try three different playlist entries to successfully play the stream.  And when some of the servers were taken offline (which happens pretty frequently), you'd have to hunt down the original PLS file manually.  What if the PLS file changed on the server side?

I hope I am not misunderstanding this.  MC can open PLS files, but it can't store them in playlists.  This is worse than not being able to store domain names, and instead insisting that only IP addresses were used.  I hate Winamp, but I've been having to use it for streams for this reason.
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42373
  • Shoes gone again!
Re:9O3q1NJ9eyz42Jf9 -- Filename (path) bug
« Reply #14 on: February 12, 2004, 04:45:24 pm »

Yeah, you're right -- it's not ideal.

MC doesn't handle playing now entries that are really playlists.  Each entry is a single file.

We may add support for this someday.  Hopefully you don't mind too much in the meantime.
Logged
Matt Ashland, JRiver Media Center

9O3q1NJ9eyz42Jf9

  • Regular Member
  • Recent member
  • *
  • Posts: 35
Re:9O3q1NJ9eyz42Jf9 -- Filename (path) bug
« Reply #15 on: February 12, 2004, 04:51:43 pm »

OK, thanks.  I can't believe it took me this long to understand the issue.  Sorry for the torturously-moronic problem description (especially since it was a known issue to begin with).

I really don't think that it is feasible to use MC for serious stream use if it doesn't fully support remote playlists.  I guess I can't uninstall that awful Winamp just yet.   :'(

Thanks again, though.
Logged
Pages: [1]   Go Up