Skip to content

Commit

Permalink
expose musicbrainz metadata if available
Browse files Browse the repository at this point in the history
  • Loading branch information
tpeacock19 committed Aug 9, 2022
1 parent 6f07b20 commit 3dfbfa4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mpris.c
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,10 @@ static GVariant *create_metadata(UserData *ud)
add_metadata_item_string(ud->mpv, &dict, "metadata/by-key/Title", "xesam:title");
add_metadata_item_string(ud->mpv, &dict, "metadata/by-key/Album", "xesam:album");
add_metadata_item_string(ud->mpv, &dict, "metadata/by-key/Genre", "xesam:genre");
add_metadata_item_string(ud->mpv, &dict, "metadata/by-key/MusicBrainz Release Track Id", "mb:trackId");
add_metadata_item_string(ud->mpv, &dict, "metadata/by-key/MusicBrainz Album Id", "mb:albumId");
add_metadata_item_string(ud->mpv, &dict, "metadata/by-key/MusicBrainz Artist Id", "mb:artistId");
add_metadata_item_string(ud->mpv, &dict, "metadata/by-key/MusicBrainz Album Artist Id", "mb:albumartistId");

add_metadata_item_string_list(ud->mpv, &dict, "metadata/by-key/uploader", "xesam:artist");
add_metadata_item_string_list(ud->mpv, &dict, "metadata/by-key/Artist", "xesam:artist");
Expand Down

0 comments on commit 3dfbfa4

Please sign in to comment.