[gnome-music/wip/carlosg/songeditor-tracker3: 1/11] trackerwrapper: Update URI filter to DataObject split
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/carlosg/songeditor-tracker3: 1/11] trackerwrapper: Update URI filter to DataObject split
- Date: Sun, 31 May 2020 15:52:44 +0000 (UTC)
commit 15b376f41b3daece78d58b5b6c38f3dd8cae7a2a
Author: Carlos Garnacho <carlosg gnome org>
Date: Sun May 31 14:58:30 2020 +0200
trackerwrapper: Update URI filter to DataObject split
The nie:url property is one of the nfo:FileDataObject, which music
may not even have access to. Use the nie:isStoredAs property as that
points to the nfo:FileDataObject, and the URL is used as the URN.
gnomemusic/trackerwrapper.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gnomemusic/trackerwrapper.py b/gnomemusic/trackerwrapper.py
index 5c085f53..c752af12 100644
--- a/gnomemusic/trackerwrapper.py
+++ b/gnomemusic/trackerwrapper.py
@@ -123,7 +123,7 @@ class TrackerWrapper(GObject.GObject):
music_dir = Tracker.sparql_escape_string(
GLib.filename_to_uri(music_dir))
- query = "FILTER (STRSTARTS(nie:url(?song), '{}/'))".format(music_dir)
+ query = "FILTER (STRSTARTS(nie:isStoredAs(?song), '{}/'))".format(music_dir)
return query
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]