[gnome-music] query: Cleanup for Tracker port of playlists



commit f68fae09c6ae840fa0d04d677aa83ef0fdfa1028
Author: Arnel Borja <arnelborja src gnome org>
Date:   Wed Jun 4 01:33:42 2014 +0800

    query: Cleanup for Tracker port of playlists

 gnomemusic/query.py |   26 --------------------------
 1 files changed, 0 insertions(+), 26 deletions(-)
---
diff --git a/gnomemusic/query.py b/gnomemusic/query.py
index b3adca6..1db4f04 100644
--- a/gnomemusic/query.py
+++ b/gnomemusic/query.py
@@ -796,32 +796,6 @@ class Query():
     """.replace('\n', ' ').strip() % {'entry_urn': entry_urn}
         return query
 
-    @staticmethod
-    def get_song_with_url(url):
-        query = '''
-    SELECT DISTINCT
-        rdf:type(?song)
-        tracker:id(?song) AS id
-        nie:url(?song) AS url
-        nie:title(?song) AS title
-        nmm:artistName(nmm:performer(?song)) AS artist
-        nie:title(nmm:musicAlbum(?song)) AS album
-        nfo:duration(?song) AS duration
-    WHERE {
-        ?song a nmm:MusicPiece ;
-              nie:url "%(url)s"
-        FILTER (
-            NOT EXISTS {
-                ?song a nmm:Video
-            } &&
-            NOT EXISTS {
-                ?song a nmm:Playlist
-            }
-        )
-    }
-    '''.replace('\n', ' ').strip() % {'url': url}
-        return query
-
     #Functions for search
     # TODO: make those queries actualyl return something
     @staticmethod


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