[gnome-music/wip/mschraal/grltrackerplaylist-empty-playlist-delete: 7/9] 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: 7/9] grltrackerplaylists: Fix empty playlist deletion
- Date: Tue, 11 Feb 2020 14:08:56 +0000 (UTC)
commit 8ae4b914abcab1aeefd042e1ad5710bed3720654
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]