[gnome-music/wip/mschraal/grltrackerplaylist-empty-playlist-delete: 1/2] 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: 1/2] grltrackerplaylists: Fix empty playlist deletion
- Date: Sun, 9 Feb 2020 15:41:49 +0000 (UTC)
commit f5cd4789905c63305163abeb52a537ec9fa7e6bc
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]