[gnome-music/wip/mschraal/core: 122/208] coregrilo: Cleanup
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/core: 122/208] coregrilo: Cleanup
- Date: Thu, 4 Jul 2019 15:43:51 +0000 (UTC)
commit 004c7aad211ef5a0acdb4c0f3bd71f22afc4e37b
Author: Marinus Schraal <mschraal gnome org>
Date: Sun Jun 23 21:51:04 2019 +0200
coregrilo: Cleanup
gnomemusic/coregrilo.py | 16 ++--------------
1 file changed, 2 insertions(+), 14 deletions(-)
---
diff --git a/gnomemusic/coregrilo.py b/gnomemusic/coregrilo.py
index 7478830b..cd02db27 100644
--- a/gnomemusic/coregrilo.py
+++ b/gnomemusic/coregrilo.py
@@ -2,12 +2,10 @@ import gi
gi.require_version('Grl', '0.3')
from gi.repository import Grl, GObject
-from gnomemusic import log
-from gnomemusic.corealbum import CoreAlbum
-from gnomemusic.coresong import CoreSong
from gnomemusic.grilowrappers.grldleynasource import GrlDLeynaSource
from gnomemusic.grilowrappers.grltrackersource import GrlTrackerSource
+
class CoreGrilo(GObject.GObject):
def __repr__(self):
@@ -24,19 +22,9 @@ class CoreGrilo(GObject.GObject):
self._albums_model = albums_model
self._artists_model = artists_model
self._hash = _hash
- # Only way to figure out removed items
- self._url_table = url_hash
Grl.init(None)
- self._fast_options = Grl.OperationOptions()
- self._fast_options.set_resolution_flags(
- Grl.ResolutionFlags.FAST_ONLY | Grl.ResolutionFlags.IDLE_RELAY)
-
- self._full_options = Grl.OperationOptions()
- self._full_options.set_resolution_flags(
- Grl.ResolutionFlags.FULL | Grl.ResolutionFlags.IDLE_RELAY)
-
self._registry = Grl.Registry.get_default()
self._registry.connect('source-added', self._on_source_added)
self._registry.connect('source-removed', self._on_source_removed)
@@ -47,7 +35,6 @@ class CoreGrilo(GObject.GObject):
self._tracker_source = GrlTrackerSource(
source, self._hash, self._model, self._albums_model,
self._artists_model, self._coremodel, self._coreselection)
- # self._tracker_source = source
print(self._tracker_source, "added")
elif source.props.source_id[:10] == "grl-dleyna":
self._dleyna_source = GrlDLeynaSource(
@@ -56,6 +43,7 @@ class CoreGrilo(GObject.GObject):
print(self._dleyna_source, "added")
def _on_source_removed(self, registry, source):
+ # FIXME: Handle removing sources.
print("removed,", source.props.source_id)
def get_artist_albums(self, artist):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]