[gnome-music/wip/mschraal/tracker-detection: 10/15] grltrackerplaylists: Only instantiate TrackerWrapper once
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/tracker-detection: 10/15] grltrackerplaylists: Only instantiate TrackerWrapper once
- Date: Sun, 28 Jul 2019 22:21:12 +0000 (UTC)
commit 0bcab3ca994f49c350c5bdcc248f6e0dfacd0ac6
Author: Marinus Schraal <mschraal gnome org>
Date: Tue Jul 23 17:11:04 2019 +0200
grltrackerplaylists: Only instantiate TrackerWrapper once
gnomemusic/grilowrappers/grltrackerplaylists.py | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/gnomemusic/grilowrappers/grltrackerplaylists.py b/gnomemusic/grilowrappers/grltrackerplaylists.py
index b7248fed..e21d59ba 100644
--- a/gnomemusic/grilowrappers/grltrackerplaylists.py
+++ b/gnomemusic/grilowrappers/grltrackerplaylists.py
@@ -80,7 +80,8 @@ class GrlTrackerPlaylists(GObject.GObject):
args = {
"source": self._source,
"coreselection": self._coreselection,
- "grilo": self._grilo
+ "grilo": self._grilo,
+ "tracker": self._tracker
}
smart_playlists = {
@@ -269,7 +270,7 @@ class Playlist(GObject.GObject):
def __init__(
self, media=None, query=None, tag_text=None, source=None,
- coremodel=None, coreselection=None, grilo=None):
+ coremodel=None, coreselection=None, grilo=None, tracker=None):
super().__init__()
if media:
@@ -285,7 +286,7 @@ class Playlist(GObject.GObject):
self._coremodel = coremodel
self._coreselection = coreselection
self._grilo = grilo
- self._tracker = TrackerWrapper().props.tracker
+ self._tracker = tracker
self._fast_options = Grl.OperationOptions()
self._fast_options.set_resolution_flags(
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]