[gnome-music/wip/mschraal/grltrackerwrapper-filter-fix: 6/6] grltrackerwrapper: Fix media id filter clause
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/grltrackerwrapper-filter-fix: 6/6] grltrackerwrapper: Fix media id filter clause
- Date: Fri, 4 Feb 2022 23:01:06 +0000 (UTC)
commit 7a05e7b513e0d016ca2450b96386a4d5adf0e386
Author: Marinus Schraal <mschraal gnome org>
Date: Fri Feb 4 16:46:50 2022 +0100
grltrackerwrapper: Fix media id filter clause
Tracker 3.3 changes need a stricter filter clause.
gnomemusic/grilowrappers/grltrackerwrapper.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gnomemusic/grilowrappers/grltrackerwrapper.py b/gnomemusic/grilowrappers/grltrackerwrapper.py
index 8fe8f5dd2..603e3cabf 100644
--- a/gnomemusic/grilowrappers/grltrackerwrapper.py
+++ b/gnomemusic/grilowrappers/grltrackerwrapper.py
@@ -416,7 +416,7 @@ class GrlTrackerWrapper(GObject.GObject):
if ids is None:
songs_filter = ""
else:
- media_ids = str(ids)[1:-1].replace("'", "")
+ media_ids = ", ".join([f"<{media_id}>" for media_id in ids])
songs_filter = f"FILTER ( ?song in ( {media_ids} ) )"
location_filter = self._tracker_wrapper.location_filter()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]