Commit 92e1c024 authored by Jean Felder's avatar Jean Felder

mpris: Do not send the Tracklist when the playlist changes

According to MPRIS specifications: "When this property (ie. Tracks
property) changes, the
org.freedesktop.DBus.Properties.PropertiesChanged signal is emitted,
but the new value is not sent."

The PropertiesChanged signal is already emitted by TrackListReplaced.

Related: #43
parent 461a9e1b
......@@ -375,9 +375,6 @@ class MediaPlayer2Service(Server):
or previous_path_list[-1] != self._path_list[-1]):
current_song_path = self._get_song_dbus_path()
self.TrackListReplaced(self._path_list, current_song_path)
{'Tracks': GLib.Variant('ao', self._path_list), }, [])
def _get_playlist_dbus_path(self, playlist):
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment