[gnome-music/wip/mschraal/grltrackerwrapper-filter-fix] grltrackerwrapper: Fix media id filter clause
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/grltrackerwrapper-filter-fix] grltrackerwrapper: Fix media id filter clause
- Date: Fri, 4 Feb 2022 16:01:26 +0000 (UTC)
commit 3192f97ffe95bc2820c676ddae9d001696bf14d2
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 | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnomemusic/grilowrappers/grltrackerwrapper.py b/gnomemusic/grilowrappers/grltrackerwrapper.py
index 8fe8f5dd2..bbee5bd2c 100644
--- a/gnomemusic/grilowrappers/grltrackerwrapper.py
+++ b/gnomemusic/grilowrappers/grltrackerwrapper.py
@@ -415,8 +415,8 @@ class GrlTrackerWrapper(GObject.GObject):
"""
if ids is None:
songs_filter = ""
- else:
- media_ids = str(ids)[1:-1].replace("'", "")
+ else: w
+ 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]