else {
el->type = "node";
el->extension = getExtension(el->path, NULL);
- this->mContents->append(*el);
+ // empty nodes appear in the playlist when they can't be played!
+ if (node->hasChildNodes()) {
+ this->mContents->append(*el);
+ }
delete el;
// now parse the child nodes as leaf.
if (node->hasChildNodes()) {