[gnome-music] query: Simplify query for playlist songs



commit 93bc0e7176a10754b71b5af8030ca306edc7caba
Author: Arnel Borja <arnelborja src gnome org>
Date:   Sat May 3 18:42:36 2014 +0800

    query: Simplify query for playlist songs

 gnomemusic/query.py |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/gnomemusic/query.py b/gnomemusic/query.py
index 0c99ab4..0e458c2 100644
--- a/gnomemusic/query.py
+++ b/gnomemusic/query.py
@@ -550,10 +550,8 @@ class Query():
         nie:title(nmm:musicAlbum(?song)) AS album
         nfo:duration(?song) AS duration
     WHERE {
-        ?song a nmm:MusicPiece .
-        FILTER (
-            nie:url(?song) = "%(url)s"
-        )
+        ?song a nmm:MusicPiece ;
+              nie:url "%(url)s"
         FILTER (
             NOT EXISTS {
                 ?song a nmm:Video


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]