[banshee: 7/57] Added genre and proper URI for streaming
- From: Bertrand Lorentz <blorentz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee: 7/57] Added genre and proper URI for streaming
- Date: Mon, 13 Feb 2012 20:28:24 +0000 (UTC)
commit aca0b543f8a0ee357c960f3235fb32e2e54228a8
Author: Tobias Arrskog <topfs2 xbmc org>
Date: Mon Jun 6 14:10:51 2011 +0200
Added genre and proper URI for streaming
.../Banshee.UPnPClient/UPnPTrackInfo.cs | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/Extensions/Banshee.UPnPClient/Banshee.UPnPClient/UPnPTrackInfo.cs b/src/Extensions/Banshee.UPnPClient/Banshee.UPnPClient/UPnPTrackInfo.cs
index e4984f5..36a9e16 100644
--- a/src/Extensions/Banshee.UPnPClient/Banshee.UPnPClient/UPnPTrackInfo.cs
+++ b/src/Extensions/Banshee.UPnPClient/Banshee.UPnPClient/UPnPTrackInfo.cs
@@ -48,13 +48,16 @@ namespace Banshee.UPnPClient
ArtistName = track.Artists.Count > 0 ? track.Artists[0].Name : "";
AlbumTitle = track.Albums.Count > 0 ? track.Albums[0] : "";
TrackTitle = track.Title;
+
+ Genre = track.Genres.Count > 0 ? track.Genres[0] : "";
+
+ if (track.Resources.Count > 0)
+ Uri = new SafeUri(track.Resources[0].Uri);
}
ExternalId = ++id;
PrimarySource = source;
-
- Uri = new SafeUri ("file://~/song.flac");
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]