|
a/src/mpdcli.cxx |
|
b/src/mpdcli.cxx |
|
... |
|
... |
288 |
if (!looksLikeTransportURI(upsong.uri)) {
|
288 |
if (!looksLikeTransportURI(upsong.uri)) {
|
289 |
//LOGDEB("MPDCli::mapSong: id " << upsong.mpdid <<
|
289 |
//LOGDEB("MPDCli::mapSong: id " << upsong.mpdid <<
|
290 |
// " replacing [" << upsong.uri << "]" << endl);
|
290 |
// " replacing [" << upsong.uri << "]" << endl);
|
291 |
upsong.uri = "http://127.0.0.1/" + upsong.uri;
|
291 |
upsong.uri = "http://127.0.0.1/" + upsong.uri;
|
292 |
}
|
292 |
}
|
|
|
293 |
cp = mpd_song_get_tag(song, MPD_TAG_NAME, 0);
|
|
|
294 |
if (cp != 0)
|
|
|
295 |
upsong.name = cp;
|
|
|
296 |
else
|
|
|
297 |
upsong.name.clear();
|
293 |
cp = mpd_song_get_tag(song, MPD_TAG_ARTIST, 0);
|
298 |
cp = mpd_song_get_tag(song, MPD_TAG_ARTIST, 0);
|
294 |
if (cp != 0)
|
299 |
if (cp != 0)
|
295 |
upsong.artist = cp;
|
300 |
upsong.artist = cp;
|
296 |
else
|
301 |
else
|
297 |
upsong.artist.clear();
|
302 |
upsong.artist.clear();
|
|
|
303 |
if (upsong.artist.empty())
|
|
|
304 |
upsong.artist = upsong.name;
|
298 |
cp = mpd_song_get_tag(song, MPD_TAG_ALBUM, 0);
|
305 |
cp = mpd_song_get_tag(song, MPD_TAG_ALBUM, 0);
|
299 |
if (cp != 0)
|
306 |
if (cp != 0)
|
300 |
upsong.album = cp;
|
307 |
upsong.album = cp;
|
301 |
else
|
308 |
else
|
302 |
upsong.album.clear();
|
309 |
upsong.album.clear();
|