[gnome-music/wip/mschraal/grltrackerplaylist-empty-playlist-delete: 5/6] grltrackerplaylists: Fix empty playlist deletion
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/grltrackerplaylist-empty-playlist-delete: 5/6] grltrackerplaylists: Fix empty playlist deletion
- Date: Thu, 13 Feb 2020 15:15:26 +0000 (UTC)
commit 1087192797fb7a88f694bbb12c844c7f284a7754
Author: Marinus Schraal <mschraal gnome org>
Date: Sun Feb 9 16:05:12 2020 +0100
grltrackerplaylists: Fix empty playlist deletion
The query requiered a nfo:MediaFileListEntry, which does not exist in
empty playlists.
Remove the nfo:MediaFileListEntry requirement.
Closes: #365
gnomemusic/grilowrappers/grltrackerplaylists.py | 5 -----
1 file changed, 5 deletions(-)
---
diff --git a/gnomemusic/grilowrappers/grltrackerplaylists.py b/gnomemusic/grilowrappers/grltrackerplaylists.py
index 649d60f0..e9b73458 100644
--- a/gnomemusic/grilowrappers/grltrackerplaylists.py
+++ b/gnomemusic/grilowrappers/grltrackerplaylists.py
@@ -199,15 +199,10 @@ class GrlTrackerPlaylists(GObject.GObject):
query = """
DELETE {
?playlist a rdfs:Resource .
- ?entry a rdfs:Resource .
-
}
WHERE {
?playlist a nmm:Playlist ;
a nfo:MediaList .
- OPTIONAL {
- ?playlist nfo:hasMediaFileListEntry ?entry .
- }
FILTER (
tracker:id(?playlist) = %(playlist_id)s
)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]