[rygel/rygel-0-12] external: Add TrackNumber property
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel/rygel-0-12] external: Add TrackNumber property
- Date: Tue, 13 Sep 2011 13:09:52 +0000 (UTC)
commit 7da1293f0643c32f5a656aaa2d7d85474bfd42b1
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]