Switch to unified view

a/src/ohradio.cxx b/src/ohradio.cxx
...
...
598
               "<item id=\"\" parentID=\"\" restricted=\"True\">\n"
598
               "<item id=\"\" parentID=\"\" restricted=\"True\">\n"
599
               "<dc:title>");
599
               "<dc:title>");
600
    out += SoapHelp::xmlQuote(title);
600
    out += SoapHelp::xmlQuote(title);
601
    out += "</dc:title>\n"
601
    out += "</dc:title>\n"
602
        "<res protocolInfo=\"*:*:*:*\" bitrate=\"6000\">";
602
        "<res protocolInfo=\"*:*:*:*\" bitrate=\"6000\">";
603
    if (uri.empty()) {
604
        // Kazoo absolutely does not want uri to be empty, else it
605
        // does not display anything in the radio list (not even the
606
        // entries with uris). So fill up with bogus value. This is
607
        // not used anyway because setId/setPlaying use the value from
608
        // the radio array or from the metascript
609
        out += SoapHelp::xmlQuote("http://www.bogus.com/bogus.mp3");
610
    } else {
603
    out += SoapHelp::xmlQuote(uri);
611
        out += SoapHelp::xmlQuote(uri);
612
    }
604
    out += "</res>\n"
613
    out += "</res>\n";
614
    if (!artUri.empty()) {
605
        "<upnp:albumArtURI>";
615
        out +=  "<upnp:albumArtURI>";
606
    out += SoapHelp::xmlQuote(artUri);
616
        out += SoapHelp::xmlQuote(artUri);
607
    out += "</upnp:albumArtURI>\n"
617
        out += "</upnp:albumArtURI>\n";
618
    }
608
        "<upnp:class>object.item.audioItem</upnp:class>\n"
619
    out +=  "<upnp:class>object.item.audioItem</upnp:class>\n"
609
        "</item>\n"
620
        "</item>\n"
610
        "</DIDL-Lite>\n";
621
        "</DIDL-Lite>\n";
611
    return out;
622
    return out;
612
}
623
}
613
624
...
...
680
                continue;
691
                continue;
681
            }
692
            }
682
            string meta = metaForId(id);
693
            string meta = metaForId(id);
683
            out += "<Entry><Id>";
694
            out += "<Entry><Id>";
684
            out += *it;
695
            out += *it;
685
            out += "</Id><Uri>";
686
            out += SoapHelp::xmlQuote(o_radios[id].uri);
687
            out += "</Uri><Metadata>";
696
            out += "</Id><Metadata>";
688
            out += SoapHelp::xmlQuote(meta);
697
            out += SoapHelp::xmlQuote(meta);
689
            out += "</Metadata></Entry>";
698
            out += "</Metadata></Entry>";
690
        }
699
        }
691
        out += "</ChannelList>";
700
        out += "</ChannelList>";
692
        LOGDEB0("OHRadio::readList: out: [" << out << "]" << endl);
701
        LOGDEB0("OHRadio::readList: out: [" << out << "]" << endl);