Fixed playlist detection for international servers.
authordruid23 <usr@dru-id.co.uk>
Tue, 17 Aug 2010 01:25:12 +0000 (02:25 +0100)
committerdruid23 <usr@dru-id.co.uk>
Tue, 17 Aug 2010 01:25:12 +0000 (02:25 +0100)
modified:   playlistmainwindow.cpp

playlistmainwindow.cpp

index 8ba4412..8b1729a 100644 (file)
@@ -165,7 +165,8 @@ void PlayListMainWindow::parseXmlPlayList() {
   for (int idx = 0; idx < ct; ++idx) {
     QDomNode node = nodes.at(idx);
     QString name = node.attributes().namedItem("name").nodeValue();
-    if (0 == QString::compare("Playlist", name)) {
+    int id = node.attributes().namedItem("id").nodeValue().toInt();
+    if (3 == id) {
       // got the main playlist, let's build it up
       if (node.hasChildNodes()) {
         QDomNodeList leafs = node.childNodes();