[rygel] all: Add omitted changes to previous commit



commit 782b1a03910981e91ecb18e0948e6f5f5be054f1
Author: Jens Georg <mail jensge org>
Date:   Sun Feb 2 16:03:51 2020 +0100

    all: Add omitted changes to previous commit

 src/plugins/lms/rygel-lms-all-images.vala                  | 2 +-
 src/plugins/lms/rygel-lms-all-music.vala                   | 2 +-
 src/plugins/lms/rygel-lms-all-videos.vala                  | 2 +-
 src/plugins/lms/rygel-lms-image-year.vala                  | 2 +-
 src/plugins/media-export/rygel-media-export-extractor.vala | 4 ++--
 5 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/plugins/lms/rygel-lms-all-images.vala b/src/plugins/lms/rygel-lms-all-images.vala
index 48bc23da..61f38b69 100644
--- a/src/plugins/lms/rygel-lms-all-images.vala
+++ b/src/plugins/lms/rygel-lms-all-images.vala
@@ -71,7 +71,7 @@ public class Rygel.LMS.AllImages : Rygel.LMS.CategoryContainer {
         var image = new ImageItem (this.build_child_id (id), this, title);
         image.creator = statement.column_text (2);
         var dt = new DateTime.from_unix_utc ((long) statement.column_int (3));
-        image.date = "%sZ".printf (now.format ("%Y-%m-%dT%H:%M:%S"));
+        image.date = "%sZ".printf (dt.format ("%Y-%m-%dT%H:%M:%S"));
         image.width = statement.column_int (4);
         image.height = statement.column_int (5);
         image.size = statement.column_int (7);
diff --git a/src/plugins/lms/rygel-lms-all-music.vala b/src/plugins/lms/rygel-lms-all-music.vala
index 8650f62b..3f92259a 100644
--- a/src/plugins/lms/rygel-lms-all-music.vala
+++ b/src/plugins/lms/rygel-lms-all-music.vala
@@ -157,7 +157,7 @@ public class Rygel.LMS.AllMusic : Rygel.LMS.CategoryContainer {
         song.artist = statement.column_text (11);
         song.album = statement.column_text (12);
         var dt = new DateTime.from_unix_utc ((long) statement.column_int (13));
-        song.date = "%sZ".printf (now.format ("%Y-%m-%dT%H:%M:%S"));
+        song.date = "%sZ".printf (dt.format ("%Y-%m-%dT%H:%M:%S"));
         song.genre = statement.column_text (14);
         var file = File.new_for_path (path);
         song.add_uri (file.get_uri ());
diff --git a/src/plugins/lms/rygel-lms-all-videos.vala b/src/plugins/lms/rygel-lms-all-videos.vala
index 30bacfc4..30ef77b3 100644
--- a/src/plugins/lms/rygel-lms-all-videos.vala
+++ b/src/plugins/lms/rygel-lms-all-videos.vala
@@ -84,7 +84,7 @@ public class Rygel.LMS.AllVideos : Rygel.LMS.CategoryContainer {
         video.creator = statement.column_text (2);
         video.duration = statement.column_int (3);
         var dt = new DateTime.from_unix_utc ((long) statement.column_int (5));
-        video.date = "%sZ".printf (now.format ("%Y-%m-%dT%H:%M:%S"));
+        video.date = "%sZ".printf (dt.format ("%Y-%m-%dT%H:%M:%S"));
         video.size = statement.column_int (6);
         video.dlna_profile = statement.column_text (7);
         video.mime_type = mime_type;
diff --git a/src/plugins/lms/rygel-lms-image-year.vala b/src/plugins/lms/rygel-lms-image-year.vala
index 1f2b70a1..229a1f28 100644
--- a/src/plugins/lms/rygel-lms-image-year.vala
+++ b/src/plugins/lms/rygel-lms-image-year.vala
@@ -72,7 +72,7 @@ public class Rygel.LMS.ImageYear : Rygel.LMS.CategoryContainer {
         image.ref_id = this.build_reference_id (id);
         image.creator = statement.column_text (2);
         var dt = new DateTime.from_unix_utc ((long) statement.column_int (3));
-        image.date = "%sZ".printf (now.format ("%Y-%m-%dT%H:%M:%S"));
+        image.date = "%sZ".printf (dt.format ("%Y-%m-%dT%H:%M:%S"));
         image.width = statement.column_int (4);
         image.height = statement.column_int (5);
         image.size = statement.column_int (7);
diff --git a/src/plugins/media-export/rygel-media-export-extractor.vala 
b/src/plugins/media-export/rygel-media-export-extractor.vala
index 5c46eec1..d0b29210 100644
--- a/src/plugins/media-export/rygel-media-export-extractor.vala
+++ b/src/plugins/media-export/rygel-media-export-extractor.vala
@@ -106,12 +106,12 @@ public class Rygel.MediaExport.Extractor : Object {
             this.serialized_info.insert (Serializer.TITLE, "s", display_name);
         }
 
-        var mtime = file_info.get_attribute_uint64
+        var mtime = file_info.get_attribute_int64
                                     (FileAttribute.TIME_MODIFIED);
         this.serialized_info.insert (Serializer.MODIFIED, "t", mtime);
 
         var dt = new DateTime.from_unix_utc (mtime);
-        var date = "%sZ".printf (now.format ("%Y-%m-%dT%H:%M:%S"));
+        var date = "%sZ".printf (dt.format ("%Y-%m-%dT%H:%M:%S"));
         this.serialized_info.insert (Serializer.DATE, "s", date);
 
         var content_type = ContentType.get_mime_type


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