[rygel] core: Add genre to MediaItem and DIDL



commit 9571157143f270b08ff41b56e0e9d812b6cce055
Author: Jens Georg <mail jensge org>
Date:   Sat Jul 24 15:23:47 2010 +0300

    core: Add genre to MediaItem and DIDL

 src/rygel/rygel-didl-lite-writer.vala |    4 ++++
 src/rygel/rygel-media-item.vala       |    1 +
 2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/rygel/rygel-didl-lite-writer.vala b/src/rygel/rygel-didl-lite-writer.vala
index f2e73a2..fea7614 100644
--- a/src/rygel/rygel-didl-lite-writer.vala
+++ b/src/rygel/rygel-didl-lite-writer.vala
@@ -88,6 +88,10 @@ internal class Rygel.DIDLLiteWriter : GUPnP.DIDLLiteWriter {
             didl_item.date = item.date;
         }
 
+        if (item.genre != null && item.genre != "") {
+            didl_item.genre = item.genre;
+        }
+
         if (item.place_holder) {
             this.http_server.add_proxy_resource (didl_item, item);
         } else {
diff --git a/src/rygel/rygel-media-item.vala b/src/rygel/rygel-media-item.vala
index b1b10ef..b7d4075 100644
--- a/src/rygel/rygel-media-item.vala
+++ b/src/rygel/rygel-media-item.vala
@@ -41,6 +41,7 @@ public class Rygel.MediaItem : MediaObject {
     public string author;
     public string album;
     public string date;
+    public string genre;
 
     // Resource info
     public string mime_type;



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