Skip to content

[guide] convert to *.wpl playlist to sync with Windows Media Player #22

Description

@cswrd

There're lots of playlist formats and file encodings and even more software to read them for playback. Resulting in issues like #8 and #15. After doing some research and tests, I'll describe here a very simple method to solve at least one of such scenarios: convert the m3u output from PPP to .wpl, that Windows Media Player can finally read (my previous approach to just convert to ANSI (#8) didn't work fully). I've tested 800 songs containing a lot of arbitrary characters in their file path. And oll of them worked: ä ' [ & - ! ) _ and so on. While it's a semi-automated description, the steps could be implemented in PPP by someone in probably no time.

3 steps are required, basically converting the m3u from PPP to an xml file. I do this with Notepad++ and the search and replace feature:

  1. replace 5 characters forbidden in xml
  2. enclose each line in a xml tag (add a prefix to each line, add a suffix to each line)
  3. add a static header and footer to the file

Steps in detail
1)
Replace the following 5 characters with these strings (like also described here):

< to &lt;
> to &gt;
& to &amp;
" to &qout;
' to &apos;

2)
Add to each line the prefix (notepad++ enable regex and search for ^ to get the begin of a line)

<media src="

Add to each line the suffix (notepad++ enable regex and search for $ to get the end of a line)

"/>

3)
Add to the beginning of the file

<?wpl version="1.0"?>
<smil>
    <body>
        <seq>

Add to the end of the file

	</seq>
    </body>
</smil>

Save as *.wpl.
done.

This should also work the opposite way around.

Would be nice to have someone implement this :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions