Fixed issues with the TrackList interface

This commit is contained in:
Sumner Evans
2019-10-12 21:37:17 -06:00
parent 8fd4b12083
commit 4e53bbcedd
2 changed files with 2 additions and 2 deletions

View File

@@ -293,7 +293,7 @@ class LibremsonicApp(Gtk.Application):
for k, v in metadata.items()
})
return GLib.Variant('aa{sv}', metadatas)
return GLib.Variant('(aa{sv})', (metadatas,))
method_call_map = {
'org.mpris.MediaPlayer2': {

View File

@@ -210,7 +210,7 @@ class DBusManager:
True,
},
'org.mpris.MediaPlayer2.TrackList': {
'Tracks': state.play_queue,
'Tracks': ['/' + i for i in state.play_queue],
'CanEditTracks': False,
},
}