[gnome-music] query: Simplify the favorite songs query
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] query: Simplify the favorite songs query
- Date: Sun, 9 Oct 2016 22:41:50 +0000 (UTC)
commit 3cf4fd71feea020d7e7665b3003927b5efa05253
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 b6483de..37cd51a 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]