Commit 8e300468 authored by Marinus Schraal's avatar Marinus Schraal

Remove obsolete update_last_played

Unused, part of commit ae1c99eb, but missed with the commit.
parent 77be4ead
......@@ -235,12 +235,6 @@ class Playlists(GObject.GObject):
GLib.PRIORITY_LOW, None,
tag_created_cb, playlist)
@log
def update_last_played(self, song_url):
cur_time = time.strftime(sparql_dateTime_format, time.gmtime())
query = Query.update_last_played(song_url, cur_time)
self.tracker.update(query, GLib.PRIORITY_LOW, None)
@log
def update_static_playlist(self, playlist):
"""Given a static playlist (subclass of StaticPlaylists), updates according to its query."""
......
......@@ -407,25 +407,6 @@ class Query():
}
return query
@staticmethod
def update_last_played(song_url, time):
query = """
INSERT OR REPLACE { ?song nfo:fileLastAccessed '%(time)s' . }
WHERE {
SELECT
?song
WHERE {
?song a nmm:MusicPiece .
FILTER ( nie:url(?song) = "%(song_url)s" )
}
}
""".replace("\n", " ").strip() % {
'song_url': song_url,
'time': time
}
return query
@staticmethod
def create_playlist(title):
query = """
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment