[gnome-music/gnome-3-22] query: Simplify the favorite songs query



commit d2911fd96d50941705ea1e64f620f61ec97b6bc9
Author: Konstantin Pospelov <kupospelov gmail com>
Date:   Thu Sep 8 22:30:00 2016 +0000

    query: Simplify the favorite songs query
    
    It seems that the favorite songs query can lead to this error in some
    circumstances: "GLib.Error: tracker-db-interface-error-quark: Invalid
    child (0)", which prevents the application from starting.
    
    The fix includes a simplification in the query, which helps to
    avoid the invalid child error.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=765476

 gnomemusic/query.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gnomemusic/query.py b/gnomemusic/query.py
index a511938..80fa63f 100644
--- a/gnomemusic/query.py
+++ b/gnomemusic/query.py
@@ -831,7 +831,7 @@ class Query():
         ?as nie:url ?url .
         FILTER (
           tracker:uri-is-descendant(
-            '%(music_dir)s', nie:url(?as)
+            '%(music_dir)s', ?url
           )
         )
     } ORDER BY DESC(tracker:added(?song))


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