-
Opening winamp playlists?
How do i open winamp play lists into a list box??
I've managed to write a code for Sonique play lists.
Thanx if you can help.
Here is an example of a winamp playlist;
#EXTM3U
#EXTINF:512,(don mclean) - american pie
Incoming\(don mclean) - american pie.mp3
#EXTINF:278,Eric Clapton - Tears in heaven
Other\Eric Clapton - Tears in heaven.mp3
#EXTINF:334,REM - Everybody Hurts (Unplugged)
RnB\REM - Everybody Hurts (Unplugged).mp3
#EXTINF:264,Wyvclef Jean feat Lauryn Hill - Gunpowder
Albums\Wyclef Jean - The Carnival\19 - Gunpowder (feat Lauryn Hill).mp3
#EXTINF:277,Roberta Flack - Killing Me Softly
Incoming\Roberta Flack - Killing Me Softly.mp3
-
Re: Opening winamp playlists?
David,
This process is probably very long, but this is what I'll probably do.
I would load the entire contents of the file into one variable, then search
for one "Chr$(13) & Chr$(10)"s (new line) then extract everything after it.
Trim it. With the remaining string, search for the first "," and extract
everything after it. Then extract upto the next "Chr$(13) & Chr$(10)" to
a new string. And just to be sure, trim the new string.
If I'm right, all the above to take out "(don mclean) - american pie"
I know there should be a better way but its the first one that comes to mind.
As you can see it is a cumbersome process so I didn't come up with the code
so soon. Hope this helps.
Sunny
"David Raymont" <DRR104@hotmail.com> wrote:
>
>How do i open winamp play lists into a list box??
>I've managed to write a code for Sonique play lists.
>
>Thanx if you can help.
>
>Here is an example of a winamp playlist;
>
>#EXTM3U
>#EXTINF:512,(don mclean) - american pie
>Incoming\(don mclean) - american pie.mp3
>#EXTINF:278,Eric Clapton - Tears in heaven
>Other\Eric Clapton - Tears in heaven.mp3
>#EXTINF:334,REM - Everybody Hurts (Unplugged)
>RnB\REM - Everybody Hurts (Unplugged).mp3
>#EXTINF:264,Wyvclef Jean feat Lauryn Hill - Gunpowder
>Albums\Wyclef Jean - The Carnival\19 - Gunpowder (feat Lauryn Hill).mp3
>#EXTINF:277,Roberta Flack - Killing Me Softly
>Incoming\Roberta Flack - Killing Me Softly.mp3
-
Re: Opening winamp playlists?
Thanx,
Do you mind writing out the full code?
Oh, and if you opened the play list in Notepad it all comes out as two lines,
does that make a diffence?
Thanx again,
---David---
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks