[gnome-music/wip/mschraal/grltrackerwrapper-filter-fix-41-backport] 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-41-backport] grltrackerwrapper: Fix media id filter clause
- Date: Thu, 17 Feb 2022 08:13:45 +0000 (UTC)
commit c754fe4a4bf112a71859097f50540f44d7b44844
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 7567275a4..2defe1a10 100644
--- a/gnomemusic/grilowrappers/grltrackerwrapper.py
+++ b/gnomemusic/grilowrappers/grltrackerwrapper.py
@@ -409,7 +409,7 @@ class GrlTrackerWrapper(GObject.GObject):
break
def _song_media_query(self, ids: List[str]) -> str:
- media_ids: str = str(ids)[1:-1].replace("'", "")
+ media_ids = ", ".join([f"<{media_id}>" for media_id in ids])
query = """
SELECT
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]