# XSPF Playlist

**URL:** https://community.mp3tag.de/t/xspf-playlist/10533
**Category:** Export
**Created:** [June 10, 2010, 3:14pm UTC](https://community.mp3tag.de/t/xspf-playlist/10533 "2010-06-10T15:14:40Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Nestor](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/n/e495f1/32.png) [@Nestor](https://community.mp3tag.de/u/Nestor)
#### Post date: [June 10, 2010, 3:14pm UTC](https://community.mp3tag.de/t/xspf-playlist/10533/1 "2010-06-10T15:14:40Z")

</div>

I've made this XSPF template, because I haven't found a proper other template in the forum.

```
$filename(%_workingpath%%_workingdir%.xspf,utf-8)<?xml version="1.0" encoding="UTF-8"?>
<playlist version="1" xmlns="http://xspf.org/ns/0/">
	<title>$replace(%_workingdir%,&,&amp;)</title>
	<trackList>
	$loop(%fieldname%)	<track>
			<title>$replace(%title%,&,&amp;)</title>
			<duration>%_length_seconds%000</duration>
			<trackNum>%track%</trackNum>
			<album>$replace(%album%,&,&amp;)</album>
			<creator>$replace(%artist%,&,&amp;)</creator>
			<annotation>%comment%</annotation>
			<location>$replace(%_filename_rel%,&,&amp;)</location>
		</track>
	$loopend()</trackList>
</playlist>

```

I only need somthing like %\_length\_miliseconds% to complete this template.  
EDIT: I tried to upload this file but it failed.  
(Hochladen fehlgeschlagen. Bitte weise den Administrator darauf hin, die Einstellungen und Berechtigungen zu überprüfen)  
Other files can be uploaded.
