Add more fields to MPRIS GetMetadata

This commit is contained in:
John Maguire 2010-09-29 17:03:32 +00:00
parent 6e4db5fcfb
commit 4c186f15dc
1 changed files with 8 additions and 0 deletions

View File

@ -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;
}