PDA

View Full Version : xml skin question



dmwlff
2005-09-04, 12:54
I'm a total newbie. I wasn't even sure what to search for to make sure I wasn't duplicating a previous thread.

I'd like to create an extension to the xml skin that provides the album list, but I also want tracks and cover art as part of the hierarchical information returned in the xml. I've provided a sample of the kind of thing that I'm looking for below.

I'm afraid I don't even know where to begin with this. Do I want to create a new template? Is there a way I can extend browsedb to do this? I'm a pretty good programmer but I'm not great with PERL and I know nothing about the templating system that SlimServer uses.

Thanks in advance for any help.
<browse_entry>
<dir>
<dir_name/>
<dir_browse_url>
xml/browsedb.xml?hierarchy=album,track&level=1&album=80
</dir_browse_url>
<album>3 Feet High and Rising</album>
<tracks>
<browse_entry>
<title>Intro</title>
<genre>No Genre</genre>
<genre_browse_url>
xml/browsedb.xml?hierarchy=artist,album,track&level=0&genre=1
</genre_browse_url>
<artist>De La Soul</artist>
<artist_browse_url>
xml/browsedb.xml?hierarchy=album,track&level=0&artist=47
</artist_browse_url>
<track>1</track>
<type>MP3</type>
<duration>1:41</duration>
<year>1989</year>
<bitrate>239kbps VBR</bitrate>
<tagversion>ID3v1.1 / ID3v2.3.0</tagversion>
<modtime>Monday, August 29, 2005, 4:19:48 PM</modtime>
<song_url></song_url>
<download_url></download_url>
<replace_url>
xml/status.xml?p0=playlist&p1=play&p2=file%3A%2F%2F%2Fmnt%2Fmongo%2Fmusic%2FDe%2520La %2520Soul%2F3%2520Feet%2520High%2520and%2520Rising %2F01-Intro.mp3
</replace_url>
<append_url>
xml/status.xml?p0=playlist&p1=append&p2=file%3A%2F%2F%2Fmnt%2Fmongo%2Fmusic%2FDe%2520La %2520Soul%2F3%2520Feet%2520High%2520and%2520Rising %2F01-Intro.mp3
</append_url>
</browse_entry>
</tracks>
</dir>
<replace_url>
xml/status.xml?p0=playlist&p1=loadalbum&p2=&p3=&p4=80
</replace_url>
<append_url>
xml/status.xml?p0=playlist&p1=addalbum&p2=&p3=&p4=80
</append_url>
</browse_entry>