changeset 1530:f0cbcd84528e

merge
author mf0102 <0102@gmx.at>
date Sun, 26 Aug 2007 15:27:31 +0200
parents 349cae04e455 (current diff) 8fddba1d94e4 (diff)
children 10cfa5b51bce d19b625f9144
files
diffstat 1 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/xspf/xspf.c	Sun Aug 26 15:26:39 2007 +0200
+++ b/src/xspf/xspf.c	Sun Aug 26 15:27:31 2007 +0200
@@ -322,6 +322,18 @@
                 }
 
                 if(nptr2->type == XML_ELEMENT_NODE
+                   && !xmlStrcmp(nptr2->name, (xmlChar *)"title")) {
+                    Playlist *plist = playlist_get_active();
+                    xmlChar *title = xmlNodeGetContent(nptr2);
+                    if (title && *title) {
+                        gchar *old = plist->title;
+                        plist->title = g_strdup((gchar*)title);
+                        if(old) g_free(old);
+                    }
+                    xmlFree(title);
+                }
+
+                if(nptr2->type == XML_ELEMENT_NODE
                    && !xmlStrcmp(nptr2->name, (xmlChar *)"trackList")) {
                     find_track(nptr2, filename, pos);
                 }