This commit is contained in:
craig.p.drummond
2013-03-21 13:05:28 +00:00
committed by craig.p.drummond
parent bdc1a0be80
commit 5fc20b65ee

View File

@@ -114,7 +114,7 @@ void Mpris::updateCurrentSong(const Song &song)
QVariantMap Mpris::Metadata() const {
QVariantMap metadataMap;
if (!currentSong.title.isEmpty() && !currentSong.artist.isEmpty() &&
(!song.currentSong.isEmpty() || (currentSong.isStream() && !currentSong.name.isEmpty()))) {
(!currentSong.album.isEmpty() || (currentSong.isStream() && !currentSong.name.isEmpty()))) {
metadataMap.insert("mpris:trackid", currentSong.id);
if (currentSong.time>0) {
metadataMap.insert("mpris:length", currentSong.time*1000000);