[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 15:55:37 +0000 (UTC)
commit 01baeb2ce388a584c61eb814d4cdd97027141b72
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..f4aa5710c 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]