Commit e56bb27e authored by Jean Felder's avatar Jean Felder

query: Retrieve last_played key

This key is used by the metadata property of MPRIS.
parent a8804ed8
Pipeline #85467 passed with stages
in 13 minutes and 19 seconds
......@@ -62,6 +62,7 @@ class Grilo(GObject.GObject):
Grl.METADATA_KEY_DURATION,
Grl.METADATA_KEY_FAVOURITE,
Grl.METADATA_KEY_ID,
Grl.METADATA_KEY_LAST_PLAYED,
Grl.METADATA_KEY_LYRICS,
Grl.METADATA_KEY_PLAY_COUNT,
Grl.METADATA_KEY_THUMBNAIL,
......
......@@ -199,6 +199,7 @@ class Query():
nie:title(nmm:musicAlbum(?song)) AS ?album
nfo:duration(?song) AS ?duration
?tag AS ?favourite
nie:contentAccessed(?song) AS ?last_played_time
nie:usageCounter(?song) AS ?play_count
{
%(where_clause)s
......@@ -261,6 +262,7 @@ class Query():
nmm:trackNumber(?song) AS ?track_number
nmm:setNumber(nmm:musicAlbumDisc(?song)) AS ?album_disc_number
?tag AS ?favourite
nie:contentAccessed(?song) AS ?last_played_time
nie:usageCounter(?song) AS ?play_count
WHERE {
?song a nmm:MusicPiece ;
......@@ -295,6 +297,7 @@ class Query():
nie:title(nmm:musicAlbum(?song)) AS ?album
nfo:duration(?song) AS ?duration
?tag AS ?favourite
nie:contentAccessed(?song) AS ?last_played_time
nie:usageCounter(?song) AS ?play_count
WHERE {
?playlist a nmm:Playlist ;
......
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