[grilo-plugins/wip/jfelder/tracker-fix-last-played-mapping] tracker: Fix last played mapping



commit f5fd521dd3bc2a54b34e4e687d0198daf4edb498
Author: Jean Felder <jfelder src gnome org>
Date:   Thu May 30 14:36:33 2019 +0200

    tracker: Fix last played mapping
    
    GRL_METADATA_KEY_LAST_PLAYED key is never set because it is not
    handled by set_date.

 src/tracker/grl-tracker-utils.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/tracker/grl-tracker-utils.c b/src/tracker/grl-tracker-utils.c
index 7fa03ec..254db97 100644
--- a/src/tracker/grl-tracker-utils.c
+++ b/src/tracker/grl-tracker-utils.c
@@ -82,6 +82,7 @@ set_date (TrackerSparqlCursor *cursor,
 {
   const gchar *str = tracker_sparql_cursor_get_string (cursor, column, NULL);
   if (key == GRL_METADATA_KEY_CREATION_DATE
+      || key == GRL_METADATA_KEY_LAST_PLAYED
       || key == GRL_METADATA_KEY_MODIFICATION_DATE) {
     GDateTime *date = grl_date_time_from_iso8601 (str);
     if (date) {


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