[gnome-music] grilo: Add method for getting playlist song using id
- From: Vadim Rutkovsky <vrutkovsky src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] grilo: Add method for getting playlist song using id
- Date: Thu, 5 Jun 2014 09:09:14 +0000 (UTC)
commit f97aa1aa8540b5736728f34f77c0df0ee6f7483f
Author: Arnel Borja <arnelborja src gnome org>
Date: Wed Jun 4 00:26:17 2014 +0800
grilo: Add method for getting playlist song using id
gnomemusic/grilo.py | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/gnomemusic/grilo.py b/gnomemusic/grilo.py
index 2e1bbdb..8474966 100644
--- a/gnomemusic/grilo.py
+++ b/gnomemusic/grilo.py
@@ -265,6 +265,13 @@ class Grilo(GObject.GObject):
self.tracker.query(query, self.METADATA_KEYS, options, callback, None)
+ @log
+ def get_playlist_song_with_id(self, playlist_id, entry_id, callback):
+ options = self.options.copy()
+ query = Query.get_playlist_song_with_id(playlist_id, entry_id)
+
+ self.tracker.query(query, self.METADATA_KEYS, options, callback, None)
+
Grl.init(None)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]