Add more fields to MPRIS GetMetadata
This commit is contained in:
parent
6e4db5fcfb
commit
4c186f15dc
|
@ -447,6 +447,14 @@ QVariantMap Player::GetMetadata(const PlaylistItem& item) const {
|
|||
AddMetadata("album", song.album(), &ret);
|
||||
AddMetadata("time", song.length(), &ret);
|
||||
AddMetadata("tracknumber", song.track(), &ret);
|
||||
AddMetadata("year", song.year(), &ret);
|
||||
AddMetadata("genre", song.genre(), &ret);
|
||||
AddMetadata("disc", song.disc(), &ret);
|
||||
AddMetadata("comment", song.comment(), &ret);
|
||||
AddMetadata("bitrate", song.bitrate(), &ret);
|
||||
AddMetadata("samplerate", song.samplerate(), &ret);
|
||||
AddMetadata("bpm", song.bpm(), &ret);
|
||||
AddMetadata("composer", song.composer(), &ret);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue