Converting text file to a Playlist

Post a reply

:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review

Expand view Topic review: Converting text file to a Playlist

by trixmoto » Fri May 18, 2007 5:05 am

by trixmoto » Fri May 18, 2007 3:55 am

It's looking pretty good. I'm up to 92% success rate on my text playlist of 50 tracks which I completely reorganised. I've gone another trick to add to improve this but there might be a release later today.

by mm_user2k6 » Thu May 17, 2007 7:38 pm

I'm working on this again now, will let you know how it goes...
Nice!! I can't wait!

Thank You.

by trixmoto » Thu May 17, 2007 8:59 am

I'm working on this again now, will let you know how it goes...

by trixmoto » Wed May 16, 2007 3:57 am

Well I like Cussy's idea and I think there's potential there for some pretty good matches. At the moment I've got a lot of things on so I can't attempt this myself, but hopefully another scripter will think about giving this a go.

by Guest » Tue May 15, 2007 2:25 pm


Any progress on this?


Even something that is close (with code for further tweaking/troubleshooting)?

by Cussy » Mon Jan 29, 2007 6:31 pm

As a variant of the search method I suggested earlier how about this.

The script takes the search subject and puts the words in order of size, and then alphabetically if there are two or more words of equal length. So, "Angel of the Morning - Crystal Gayle" becomes "Crystal - Morning - Angel - Gayle - the - of"

The search then looks to match the first word, and if there are more than 2 results it looks to match the next word and so on.

I've tried it with several songs using the advanced search, progressively adding words to the criteria and it seems work pretty good.

by Teknojnky » Mon Jan 29, 2007 4:49 pm

I wonder if this could be somehow like the 'extract fields' script and some sql %like% matching.

like iterate through a list, try to figure out artist matching then track matching, generate a report of possible matches with a red/yellow/green color match code, then create the playlist based on what the user approves matches of.

by rovingcowboy » Sun Jan 28, 2007 8:32 pm

oh you mean like a database or dos text file.

okay i thought they wated to import playlists?

sorry about the misunderstanding. :oops:

by trixmoto » Sun Jan 28, 2007 4:47 pm

You misunderstand rovingcowboy - the request is to use a raw text list of songs and search for them to create a playlist. The file is not a playlist itself and therefore Winamp cannot read it any better than MediaMonkey.

I have tried to create a script like this before and not succeeded. However, should I find myself with some free time I'll give it another go. Maybe another scripter will have more luck?

by rovingcowboy » Fri Jan 26, 2007 12:57 pm

i don't really think so, i thought it was just a list text file.

m3u's are just text files containing the local url to the song and they will when the extension is changed from .txt to .m3u play as a playlist.

and if you have winamp or monkey set up to get the tags from the song files. then the names show up in the playlists view area.

so that is what i ment but if the doc is just a text file try changing that to a .m3u and see what it will do in opening with media monkey?

i have made m3u's with winamp and media monkey and they both add in a code for their use as to put the name and beat and stuff in the listing.

but when i edit that in the notepad and just leave the local url / mask, to the song and then play the m3u in either one of them the titles show up.

i showed some place here how to make a m3u list? but just a short recap

open note pad.
type in it the location for the songs like.
  • c:\my music\fiddlin frenchie burke\big mamu.ogg
    c:\my music\jimmy c. newman\aligatorman.ogg
thats a very simple m3u playlist. it depends on the tags having the information in them already.

if the document is like that then just change the extenstion from doc to m3u
and you have a playlist.

by Cussy » Fri Jan 26, 2007 11:28 am

I don't have winamp on my pc, Rovingcowboy, but would happily download it if it solved the problem. I'm not sure that it does though, looking at the winamp site -

We are starting with a .doc file or .txt file - are you saying that Winamp can simply open that file and convert it to a playlist for exporting?

by rovingcowboy » Fri Jan 26, 2007 8:25 am

copy the playlist open it in winamp export to m3u. then import in to media monkey.

if the songs are in media monkey's database then they will show up
else they will be grayed out.

did you try that to see if it worked?

but as trixmoto said i believe the tags would be a nightmare to get to convert .
and i don't program so for me to see that it must be a huge nightmare.


by Cussy » Fri Jan 26, 2007 8:02 am

I think almost anything is useful since the original list is almost always likely to be relatively long, in excess of 20 say. And working with something like "the 100 best....", "50 greatest" etc means a lot of work.

We start with a text file, of course, which is easy to edit. Take the list I started with. I copied this, pasted to Word and immediately and simply removed all the quotation marks. So there could be a set of parameters that the user has to comply with first if that helps.

What about a progressive search, maybe with an option to run a string search if that fails?

You might need an initial option to say whether the original list is title - artist or artist - title. Then the script searches for the first word. Where it finds more than a set (or customisable) number it moves to the next word. And again if that is above the parameter it moves on until it has less than the final parameter.

So, take "I Will Survive - Gloria Gaynor". It searches for "I" and finds 90 but is told to move on if it finds more than 5 results. So then it looks for "I will" and returns 21, and then moves on to "I Will Survive"

Where it can't find an exact match it perhaps could then allow a string search as in MM now and allow the user to specify which result to add to the final playlist.

Even if the final selection of the artist had to done manually and added to the playlist it would save a lot of work. Or maybe the results could display in a table with the original title/artist query in a column followed by the results with a check box to tick for the ones to include (but allow a "Check All" button option).

by trixmoto » Fri Jan 26, 2007 5:00 am

SQL doesn't understand what you mean by 90% match!