[gnome-music/wip/mschraal/tageditor: 5/16] grltrackerwrapper: Retrieve creation year for songs
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/tageditor: 5/16] grltrackerwrapper: Retrieve creation year for songs
- Date: Fri, 22 Nov 2019 15:35:45 +0000 (UTC)
commit 992681840960749ca066a4b9a00d053a87121f1f
Author: Sumaid Syed <sumaidsyed gmail com>
Date: Sun Aug 4 22:47:34 2019 +0530
grltrackerwrapper: Retrieve creation year for songs
Based on the patches by Jean Felder
https://gitlab.gnome.org/GNOME/gnome-music/issues/293
gnomemusic/grilowrappers/grltrackerwrapper.py | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/gnomemusic/grilowrappers/grltrackerwrapper.py b/gnomemusic/grilowrappers/grltrackerwrapper.py
index ceb8242e..ca7beb8d 100644
--- a/gnomemusic/grilowrappers/grltrackerwrapper.py
+++ b/gnomemusic/grilowrappers/grltrackerwrapper.py
@@ -298,6 +298,7 @@ class GrlTrackerWrapper(GObject.GObject):
nie:usageCounter(?song) AS ?play_count
nmm:trackNumber(?song) AS ?track_number
nmm:setNumber(nmm:musicAlbumDisc(?song)) AS ?album_disc_number
+ YEAR(nie:contentCreated(?song)) AS ?creation_date
?tag AS ?favourite
WHERE {
?song a nmm:MusicPiece .
@@ -371,6 +372,7 @@ class GrlTrackerWrapper(GObject.GObject):
nie:usageCounter(?song) AS ?play_count
nmm:trackNumber(?song) AS ?track_number
nmm:setNumber(nmm:musicAlbumDisc(?song)) AS ?album_disc_number
+ YEAR(nie:contentCreated(?song)) AS ?creation_date
?tag AS ?favourite
WHERE {
?song a nmm:MusicPiece .
@@ -604,6 +606,7 @@ class GrlTrackerWrapper(GObject.GObject):
nmm:setNumber(nmm:musicAlbumDisc(?song)) AS ?album_disc_number
?tag AS ?favourite
nie:usageCounter(?song) AS ?play_count
+ YEAR(nie:contentCreated(?song)) AS ?creation_date
WHERE {
?song a nmm:MusicPiece ;
nmm:musicAlbum ?album .
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]