|
a/src/ohradio.cxx |
|
b/src/ohradio.cxx |
|
... |
|
... |
211 |
if (radio.artScript.size()) {
|
211 |
if (radio.artScript.size()) {
|
212 |
string nsong(mpds.currentsong.title + mpds.currentsong.artist);
|
212 |
string nsong(mpds.currentsong.title + mpds.currentsong.artist);
|
213 |
if (nsong.compare(m_currentsong)) {
|
213 |
if (nsong.compare(m_currentsong)) {
|
214 |
m_currentsong = nsong;
|
214 |
m_currentsong = nsong;
|
215 |
string uri;
|
215 |
string uri;
|
|
|
216 |
radio.dynArtUri.clear();
|
216 |
if (ExecCmd::backtick(radio.artScript, uri)) {
|
217 |
if (ExecCmd::backtick(radio.artScript, uri)) {
|
217 |
trimstring(uri, " \t\r\n");
|
218 |
trimstring(uri, " \t\r\n");
|
218 |
LOGDEB("OHRadio::makestate: artScript got: [" << uri <<
|
219 |
LOGDEB("OHRadio::makestate: artScript got: [" << uri <<
|
219 |
"]\n");
|
220 |
"]\n");
|
220 |
radio.dynArtUri = uri;
|
221 |
radio.dynArtUri = uri;
|
221 |
}
|
222 |
}
|
222 |
}
|
223 |
}
|
223 |
}
|
224 |
}
|
224 |
mpds.currentsong.artUri = radio.dynArtUri;
|
225 |
mpds.currentsong.artUri = radio.dynArtUri.empty() ? radio.artUri :
|
|
|
226 |
radio.dynArtUri;
|
225 |
|
227 |
|
226 |
string meta = didlmake(mpds.currentsong);
|
228 |
string meta = didlmake(mpds.currentsong);
|
227 |
st["Metadata"] = meta;
|
229 |
st["Metadata"] = meta;
|
228 |
m_dev->m_ohif->setMetatext(meta);
|
230 |
m_dev->m_ohif->setMetatext(meta);
|
229 |
} else {
|
231 |
} else {
|