[gnome-music/wip/mschraal/tageditor: 8/21] 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: 8/21] grltrackerwrapper: Retrieve creation year for songs
- Date: Fri, 22 Nov 2019 15:56:48 +0000 (UTC)
commit 344b6366ef370903a83c3a198b5df7ab433d48e4
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 ecda4968..2b9d42c6 100644
--- a/gnomemusic/grilowrappers/grltrackerwrapper.py
+++ b/gnomemusic/grilowrappers/grltrackerwrapper.py
@@ -300,6 +300,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 .
@@ -378,6 +379,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 .
@@ -625,6 +627,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]