[gnome-music/wip/mschraal/core: 95/164] trackersource: Improve artists query



commit 16aded1780b6f43caa6e50bbdd1ac19536be3ccc
Author: Marinus Schraal <mschraal gnome org>
Date:   Sat Jun 22 10:52:39 2019 +0200

    trackersource: Improve artists query

 gnomemusic/grilowrappers/grltrackersource.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/gnomemusic/grilowrappers/grltrackersource.py b/gnomemusic/grilowrappers/grltrackersource.py
index 2039f464..78a8985c 100644
--- a/gnomemusic/grilowrappers/grltrackersource.py
+++ b/gnomemusic/grilowrappers/grltrackersource.py
@@ -263,7 +263,10 @@ class GrlTrackerSource(GObject.GObject):
             nmm:artistName(?artist_class) AS ?artist
         {
             ?artist_class a nmm:Artist .
-        }
+            ?song a nmm:MusicPiece;
+                    nmm:musicAlbum ?album;
+                    nmm:performer ?artist_class .
+        } GROUP BY ?artist_class
         """.replace('\n', ' ').strip()
 
         options = self._fast_options.copy()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]