Commit 5e926bbf authored by Jean Felder's avatar Jean Felder Committed by Jean Felder

mpris: Distinguish mpris playlists from user playlists

Rename _get_playlists method to _query_playlists to avoid the confusion
between the playlists created by the user and the functions associated
with the MPRIS Playlists interface.
parent b8ba7cf8
......@@ -396,7 +396,7 @@ class MediaPlayer2Service(Server):
return None
@log
def _get_playlists(self, callback):
def _query_playlists(self, callback):
playlists = []
def populate_callback(source, param, item, remaining=0, data=None):
......@@ -500,7 +500,7 @@ class MediaPlayer2Service(Server):
@log
def _reload_playlists(self):
def get_playlists_callback(playlists):
def query_playlists_callback(playlists):
self.playlists = playlists
self.PropertiesChanged(MediaPlayer2Service.MEDIA_PLAYER2_PLAYLISTS_IFACE,
{
......@@ -508,7 +508,7 @@ class MediaPlayer2Service(Server):
},
[])
self._get_playlists(get_playlists_callback)
self._query_playlists(query_playlists_callback)
@log
def _on_playlists_count_changed(self, playlists, item):
......
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