According to MPRIS protocol, xesam:artist is a list of strings and not string and thus, when a youtube video is played in mpv, GNOME shell says Received faulty track artist metadata from org.mpris.MediaPlayer2.mpv; expected an array of strings, got <artistname> (string)
So just changed add_metadata_item_string to add_metadata_item_string_list and it works fine when I tested.
According to MPRIS protocol,
xesam:artist
is a list of strings and not string and thus, when a youtube video is played in mpv, GNOME shell saysReceived faulty track artist metadata from org.mpris.MediaPlayer2.mpv; expected an array of strings, got <artistname> (string)
So just changed
add_metadata_item_string
toadd_metadata_item_string_list
and it works fine when I tested.