summaryrefslogtreecommitdiff
path: root/src/plugins/external
diff options
context:
space:
mode:
authorJonathan Matthew <jonathan@d14n.org>2011-09-12 22:13:37 +1000
committerZeeshan Ali (Khattak) <zeeshanak@gnome.org>2011-09-12 22:18:08 +0300
commit788d4ad22bcec77878210d6db4b110cb8694190b (patch)
treefd458b250a8d260953a5a34a775f26cabee3dd89 /src/plugins/external
parent71cc3ea329f714da8c985539e99657413f7e9c1d (diff)
downloadrygel-788d4ad22bcec77878210d6db4b110cb8694190b.tar.gz
external: Add TrackNumber property
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=657550
Diffstat (limited to 'src/plugins/external')
-rw-r--r--src/plugins/external/rygel-external-interfaces.vala3
-rw-r--r--src/plugins/external/rygel-external-item-factory.vala1
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 097cc14a..9cd50d42 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 b2a169a3..c3ed2833 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) {