Old 7th April 2002, 00:32   #1
somestuff
Junior Member
 
Join Date: Apr 2002
Posts: 6
converting .bpl playlists to m3u?

is there a way to do it???
somestuff is offline  
Old 7th April 2002, 05:18   #2
Rocker
Hiding in plain sight (mod)
 
Join Date: Jun 2000
Location: Melbourne, Australia
Posts: 9,910
theirs no way to do it yet....

on release you will be able to save and load m3u's and pls files....as well as bpl


maybe someone will write a converter
Rocker is offline  
Old 7th April 2002, 16:53   #3
somestuff
Junior Member
 
Join Date: Apr 2002
Posts: 6
no biggie, i just spent a lot of time making a playlist in winamp3 before i realized they cant be played in winamp2.

i need to use winamp 2 to play mp3s while i am gaming because winamp3 skips and lags a lot. i heard there is a way to recude the amount of resources wa3 uses.... can anyone tell me how to do this so i can use wa3 always....
somestuff is offline  
Old 7th April 2002, 19:32   #4
Hollow
Major Dude
 
Hollow's Avatar
 
Join Date: Oct 2001
Location: Baker Lab, Ithaca NY
Posts: 1,128
Send a message via AIM to Hollow
Now You Can.

use the attached program. Easiest way to use it to drag the playlist onto the program and drop. or from the command line,

bpl2m3u playlist.bpl

it has been tested with files of up to 1200 songs, if it doesn't work, open up the m3u in a text editor and find the song at which it errored, remove that song from the bpl playlist (do this in winamp3) and then try again. if that does work, i don't know what the problem is.
Attached Files
File Type: zip bpl2m3u.zip (80.3 KB, 92 views)

The moon is made of cheese.
Oh for some tasty moon cheese.
www.redtetrahedron.org
Hollow is offline  
Old 8th April 2002, 07:00   #5
somestuff
Junior Member
 
Join Date: Apr 2002
Posts: 6
songs with ampersands, commas, and apostrophes seem to cause errors in the program. i cant get it to work with my playlist yet, but thanks a lot. BTW, could you by any chance release the source so i could take a look?
somestuff is offline  
Old 8th April 2002, 19:20   #6
Hollow
Major Dude
 
Hollow's Avatar
 
Join Date: Oct 2001
Location: Baker Lab, Ithaca NY
Posts: 1,128
Send a message via AIM to Hollow
hmmm. I dont get that error. I have attached the source, but don't expect anything fantastic. Its something i wrote real quick, i actually don't understand where that error could be coming from. I tried it with all the characters you suggested and it worked fine. also remember this sort of thing is about the extent of what i can do.
Attached Files
File Type: txt convert.txt (1.8 KB, 114 views)

The moon is made of cheese.
Oh for some tasty moon cheese.
www.redtetrahedron.org
Hollow is offline  
Old 8th April 2002, 20:15   #7
bluesman81
Member
 
bluesman81's Avatar
 
Join Date: Apr 2001
Location: Sunny, Warm, Michigan!
Posts: 59
Just to give you some information. I wrote a program to do the same thing and apparently there are instances (characters in bpl files) where & and ' are converted into an encoded scheme in the file names themselves. They are not always "valid" filenames in an imediate usability sense, winamp2 cannot use them. This is what the error is. & = & + amp;(Sorry if you put & and amp; together the browser kills it) and ' = ' if I'm correct. There may be others but I haven't ran into them. Just thought I'd give you some more info. I never had a problem with commas though?

Just thought I'd pass the info. Nice program.

Last edited by bluesman81; 8th April 2002 at 21:03.
bluesman81 is offline  
Old 8th April 2002, 20:44   #8
Hollow
Major Dude
 
Hollow's Avatar
 
Join Date: Oct 2001
Location: Baker Lab, Ithaca NY
Posts: 1,128
Send a message via AIM to Hollow
Thats quite interesting, i wonder why they did that. i checked and out of !@#$%^&()_+=-.,'[]{}~` in the file name and got no problems beyond & and ' however when i checked that same list plus <>/\|?* in the id3 tag i found that if < or > appears it is replaced with &gt; = > and &lt; = < when that information is writen to the bpl.

Thanks for the info. I had missed the error before, since i didn't try renaming the songs, but just chaning the bpl file, so it was my bad.

I'll try to have a correct converter out later today or tomorrow sometime, hopefully.

Anybody know why they did it this way? And what the deal is with those characters that they are treated differently?

The moon is made of cheese.
Oh for some tasty moon cheese.
www.redtetrahedron.org
Hollow is offline  
Old 8th April 2002, 21:08   #9
bluesman81
Member
 
bluesman81's Avatar
 
Join Date: Apr 2001
Location: Sunny, Warm, Michigan!
Posts: 59
I know very little about XML. Could it be something to do with this (XML like) type of formating? Sorry, just a thought. Anyhow, I too am curious about the reason. Happy coding!
bluesman81 is offline  
Old 9th April 2002, 06:37   #10
Hollow
Major Dude
 
Hollow's Avatar
 
Join Date: Oct 2001
Location: Baker Lab, Ithaca NY
Posts: 1,128
Send a message via AIM to Hollow
that xml like formating you speak of is xml. I guess i'm not 100% sure but i dont think that has anything to do with it. Anyway the reason behind this post is that bpl2m2u now supports those charactures that it didn't before meaning it properly converts & ' < > so here we go.

This is the last update i am going to do. If it still doesnt work because of what ever reason, the source is in there, fix yo self.
Attached Files
File Type: zip bpl2m3u1.zip (82.6 KB, 85 views)

The moon is made of cheese.
Oh for some tasty moon cheese.
www.redtetrahedron.org
Hollow is offline  
Old 9th April 2002, 11:02   #11
Aus
French Canadian
(Alumni)
 
Aus's Avatar
 
Join Date: Dec 2001
Location: A shiny Igloo.
Posts: 333
Send a message via AIM to Aus
neat.

Aus -- NoisePort.Org, chronicles of the french canadian alien (Temporarly down during the move).
Aus is offline  
Old 12th April 2002, 20:18   #12
Hollow
Major Dude
 
Hollow's Avatar
 
Join Date: Oct 2001
Location: Baker Lab, Ithaca NY
Posts: 1,128
Send a message via AIM to Hollow
I looked and the &amp; and all are the html codes for those characters, (which i am sure many of you knew, but didn't say) So yeah i guess to that to be web safe xml uses those for the special characters, which does explain things, to some extent.

The moon is made of cheese.
Oh for some tasty moon cheese.
www.redtetrahedron.org
Hollow is offline  
Old 13th April 2002, 02:07   #13
Rocker
Hiding in plain sight (mod)
 
Join Date: Jun 2000
Location: Melbourne, Australia
Posts: 9,910
Quote:
Originally posted by Aus
neat.
/me wonders if Aus is secretly working on the source
Rocker is offline  
 
Go Back   Winamp & Shoutcast Forums > Winamp3 > Winamp3 Discussion

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