XSPF Export Template

Here's a template I just wrote for the excellent (and free) XSPF Flash music player:

XSPF Web Music Player (Flash) - Plays MP3 on your website
http://musicplayer.sourceforge.net/

XSPF.mte (438 Bytes)

Hi, I've made this one some time ago because I thought the play list was logical.

What do you think ?

I can't upload this so here:-

$filename(%_folderpath%%_directory%.xml,ansi)<?xml version="1.0" encoding="UTF-8"?>

%comment% cover.jpg %year%
<trackList>

$loop(%track%)

    <track>
		<album>%album%</album>
		<creator>%artist%</creator>
		<title>%title%</title>
		<trackNum>%track%</trackNum>
		<location>%_filename_ext%</location>
		<annotation></annotation>
		<duration>%_length_seconds%</duration>
		<image></image>
		<info></info>
		<identifier></identifier>
    </track>

$loopend()

</trackList>

Both them generate invalid xspf (%_filename_ext% isn't a URI) ;/

I don't think there is a way to generate valid ones though. If someone knows, help would be appreciated.

If you look this generates an XML not URL. The only problem is that some programs only reconise the part and not the full playlist.

try replacing this line

%_filename_ext%

with

file:///$replace(%_filename_ext%,,/)

I've not tested this, so give it a try and let us know if it works...