Oops!!!
This commit is contained in:
committed by
craig.p.drummond
parent
bdc1a0be80
commit
5fc20b65ee
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user