|
a/src/ohradio.cxx |
|
b/src/ohradio.cxx |
|
... |
|
... |
567 |
"<item id=\"\" parentID=\"\" restricted=\"True\">\n"
|
567 |
"<item id=\"\" parentID=\"\" restricted=\"True\">\n"
|
568 |
"<dc:title>");
|
568 |
"<dc:title>");
|
569 |
out += SoapHelp::xmlQuote(title);
|
569 |
out += SoapHelp::xmlQuote(title);
|
570 |
out += "</dc:title>\n"
|
570 |
out += "</dc:title>\n"
|
571 |
"<res protocolInfo=\"*:*:*:*\" bitrate=\"6000\">";
|
571 |
"<res protocolInfo=\"*:*:*:*\" bitrate=\"6000\">";
|
|
|
572 |
if (uri.empty()) {
|
|
|
573 |
// Kazoo absolutely does not want uri to be empty, else it
|
|
|
574 |
// does not display anything in the radio list (not even the
|
|
|
575 |
// entries with uris). So fill up with bogus value. This is
|
|
|
576 |
// not used anyway because setId/setPlaying use the value from
|
|
|
577 |
// the radio array or from the metascript
|
|
|
578 |
out += SoapHelp::xmlQuote("http://www.bogus.com/bogus.mp3");
|
|
|
579 |
} else {
|
572 |
out += SoapHelp::xmlQuote(uri);
|
580 |
out += SoapHelp::xmlQuote(uri);
|
|
|
581 |
}
|
573 |
out += "</res>\n"
|
582 |
out += "</res>\n";
|
|
|
583 |
if (!artUri.empty()) {
|
574 |
"<upnp:albumArtURI>";
|
584 |
out += "<upnp:albumArtURI>";
|
575 |
out += SoapHelp::xmlQuote(artUri);
|
585 |
out += SoapHelp::xmlQuote(artUri);
|
576 |
out += "</upnp:albumArtURI>\n"
|
586 |
out += "</upnp:albumArtURI>\n";
|
|
|
587 |
}
|
577 |
"<upnp:class>object.item.audioItem</upnp:class>\n"
|
588 |
out += "<upnp:class>object.item.audioItem</upnp:class>\n"
|
578 |
"</item>\n"
|
589 |
"</item>\n"
|
579 |
"</DIDL-Lite>\n";
|
590 |
"</DIDL-Lite>\n";
|
580 |
return out;
|
591 |
return out;
|
581 |
}
|
592 |
}
|
582 |
|
593 |
|
|
... |
|
... |
649 |
continue;
|
660 |
continue;
|
650 |
}
|
661 |
}
|
651 |
string meta = metaForId(id);
|
662 |
string meta = metaForId(id);
|
652 |
out += "<Entry><Id>";
|
663 |
out += "<Entry><Id>";
|
653 |
out += *it;
|
664 |
out += *it;
|
654 |
out += "</Id><Uri>";
|
|
|
655 |
out += SoapHelp::xmlQuote(o_radios[id].uri);
|
|
|
656 |
out += "</Uri><Metadata>";
|
665 |
out += "</Id><Metadata>";
|
657 |
out += SoapHelp::xmlQuote(meta);
|
666 |
out += SoapHelp::xmlQuote(meta);
|
658 |
out += "</Metadata></Entry>";
|
667 |
out += "</Metadata></Entry>";
|
659 |
}
|
668 |
}
|
660 |
out += "</ChannelList>";
|
669 |
out += "</ChannelList>";
|
661 |
LOGDEB0("OHRadio::readList: out: [" << out << "]" << endl);
|
670 |
LOGDEB0("OHRadio::readList: out: [" << out << "]" << endl);
|