[rygel] external: Add TrackNumber property



commit 788d4ad22bcec77878210d6db4b110cb8694190b
Author: Jonathan Matthew <jonathan d14n org>
Date:   Mon Sep 12 22:13:37 2011 +1000

    external: Add TrackNumber property
    
    Fixes https://bugzilla.gnome.org/show_bug.cgi?id=657550

 .../external/rygel-external-interfaces.vala        |    3 ++-
 .../external/rygel-external-item-factory.vala      |    1 +
 2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/external/rygel-external-interfaces.vala b/src/plugins/external/rygel-external-interfaces.vala
index 097cc14..9cd50d4 100644
--- a/src/plugins/external/rygel-external-interfaces.vala
+++ b/src/plugins/external/rygel-external-interfaces.vala
@@ -91,7 +91,8 @@ public interface Rygel.External.MediaItemProxy : DBusProxy, MediaObjectProxy {
                                                 "PixelWidth",
                                                 "PixelHeight",
                                                 "Thumbnail",
-                                                "AlbumArt" };
+                                                "AlbumArt",
+                                                "TrackNumber" };
 
     [DBus (name = "URLs")]
     public abstract string[] urls { owned get; set; }
diff --git a/src/plugins/external/rygel-external-item-factory.vala b/src/plugins/external/rygel-external-item-factory.vala
index b2a169a..c3ed283 100644
--- a/src/plugins/external/rygel-external-item-factory.vala
+++ b/src/plugins/external/rygel-external-item-factory.vala
@@ -79,6 +79,7 @@ public class Rygel.External.ItemFactory {
         music.artist = this.get_string (props, "Artist");
         music.album = this.get_string (props, "Album");
         music.genre = this.get_string (props, "Genre");
+        music.track_number = this.get_int (props, "TrackNumber");
 
         var value = props.lookup ("AlbumArt");
         if (value != null) {



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