Old 10th September 2001, 16:32   #1
Slate8
Junior Member
 
Join Date: Sep 2001
Posts: 2
M3U creation and 400 Bad Request

Hi,

This is my first time on this forum but I'm despirate - this has been bugging me for days.

I am creating an ASP website that allows users to browse folders full of MP3 files. When a page is accessed it makes an m3u file for each mp3 in the directory and one that plays all tracks in the directory. I am having dificulty with winamp and some m3u files. If the mp3 file name is quite long I get a (HTTP/1.1 400 Bad Request) error in the playlist window of winamp. If I then open the m3u file in Windows Media Player it works fine. Likewise if I open the m3u in notepad, copy the url and paste it into my browser the file is downloaded fine.

Here's an example of the m3us I'm creating. First one that works in Winamp:

http://colindev/myserver/files/mp3s/...1/Anaconda.mp3
http://colindev/myserver/files/mp3s/.../Barracuda.mp3
http://colindev/myserver/files/mp3s/...The_System.mp3
http://colindev/myserver/files/mp3s/...Beaufort_8.mp3
http://colindev/myserver/files/mp3s/...lue_Oyster.mp3
http://colindev/myserver/files/mp3s/.../Breakdown.mp3
http://colindev/myserver/files/mp3s/...onus_Track.mp3
http://colindev/myserver/files/mp3s/..._Within_96.mp3
http://colindev/myserver/files/mp3s/...Vol_1/Freedom-(Warriors_Mix).mp3
http://colindev/myserver/files/mp3s/...ol_1/Manta.mp3
http://colindev/myserver/files/mp3s/...roved_Shit.mp3
http://colindev/myserver/files/mp3s/...owed_Remix.mp3
http://colindev/myserver/files/mp3s/...cialist_96.mp3


And here's one that gives the 400 error:

http://colindev/myserver/files/mp3s/...s_Vol2/Captain Tinrib - Fish Grooves - 01 energy 52 - cafe del mar .mp3
http://colindev/myserver/files/mp3s/...s_Vol2/Captain Tinrib - Fish Grooves - 02 the captain and dfq - rock.mp3
http://colindev/myserver/files/mp3s/...s_Vol2/Captain Tinrib - Fish Grooves - 03 l h puke - haunted - bb.mp3
http://colindev/myserver/files/mp3s/...s_Vol2/Captain Tinrib - Fish Grooves - 04 atropin - optics - bb.mp3
http://colindev/myserver/files/mp3s/...s_Vol2/Captain Tinrib - Fish Grooves - 05 the project - meltdown (od.mp3
http://colindev/myserver/files/mp3s/...s_Vol2/Captain Tinrib - Fish Grooves - 06 n o k - get on up - bb.mp3
http://colindev/myserver/files/mp3s/...s_Vol2/Captain Tinrib - Fish Grooves - 07 epik - caramel e (r o m mi.mp3
http://colindev/myserver/files/mp3s/...s_Vol2/Captain Tinrib - Fish Grooves - 08 the alien thing - salad bo.mp3
http://colindev/myserver/files/mp3s/...s_Vol2/Captain Tinrib - Fish Grooves - 09 phantom - control freak (a.mp3
http://colindev/myserver/files/mp3s/...s_Vol2/Captain Tinrib - Fish Grooves - 10 od404 bad motherfucker - b.mp3
http://colindev/myserver/files/mp3s/...s_Vol2/Captain Tinrib - Fish Grooves - 11 signum feat scott mac - co.mp3
http://colindev/myserver/files/mp3s/...s_Vol2/Captain Tinrib - Fish Grooves - 12 dj ziad - get it on - bb.mp3
http://colindev/myserver/files/mp3s/...s_Vol2/Captain Tinrib - Fish Grooves - 13 knuckleheadz - up front - .mp3
http://colindev/myserver/files/mp3s/...s_Vol2/Captain Tinrib - Fish Grooves - 14 the captain and simon eve .mp3
http://colindev/myserver/files/mp3s/...s_Vol2/Captain Tinrib - Fish Grooves - 15 captain trinrib - ride me .mp3


Any ideas - is there a specific format I should conform to?

Thanks for any suggestions.

Slate8
Slate8 is offline   Reply With Quote
Old 10th September 2001, 22:17   #2
Sawg
Guest
 
Posts: n/a
Try replacing ths spaces in the URLs with "%20"
  Reply With Quote
Old 11th September 2001, 08:07   #3
Slate8
Junior Member
 
Join Date: Sep 2001
Posts: 2
Great! Thanks

Can't believe I forgot to URL encode them - thanks
Slate8 is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Winamp > Winamp Technical Support

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump