Mercurial > audlegacy-plugins
changeset 1534:2e4bafa36206
merge
author | mf0102 <0102@gmx.at> |
---|---|
date | Sun, 26 Aug 2007 22:46:54 +0200 |
parents | de7b85224c37 (current diff) 10cfa5b51bce (diff) |
children | 01258948608e |
files | |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xspf/xspf.c Sun Aug 26 22:46:35 2007 +0200 +++ b/src/xspf/xspf.c Sun Aug 26 22:46:54 2007 +0200 @@ -460,6 +460,15 @@ xmlAddChild(rootnode, extension); } + /* save playlist title */ + if(playlist->title && playlist->title[0] + && g_utf8_validate(playlist->title, -1, NULL)) { + xmlNodePtr title; + title = xmlNewNode(NULL, (xmlChar *)"title"); + xmlAddChild(title, xmlNewText((xmlChar *)playlist->title)); + xmlAddChild(rootnode, title); + } + tracklist = xmlNewNode(NULL, (xmlChar *)"trackList"); xmlAddChild(rootnode, tracklist);