[gnome-music/wip/jfelder/album-cover-editordialog: 3/8] query: Get additional tags from album_songs



commit b2aec128791c1a86698fa24baf8b9824f6375344
Author: Jean Felder <jfelder src gnome org>
Date:   Tue Nov 13 14:28:16 2018 +0100

    query: Get additional tags from album_songs
    
    Retrieve creation_date and genre.

 gnomemusic/query.py | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/gnomemusic/query.py b/gnomemusic/query.py
index ac7707f8..765ab781 100644
--- a/gnomemusic/query.py
+++ b/gnomemusic/query.py
@@ -255,6 +255,8 @@ class Query():
         nie:title(?song) AS ?title
         nmm:artistName(nmm:performer(?song)) AS ?artist
         nie:title(nmm:musicAlbum(?song)) AS ?album
+        YEAR(nie:contentCreated(?song)) AS ?creation_date
+        nfo:genre(?song) AS ?genre
         nfo:duration(?song) AS ?duration
         nmm:trackNumber(?song) AS ?track_number
         nmm:setNumber(nmm:musicAlbumDisc(?song)) AS ?album_disc_number


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