[banshee/better-now-playing] [Last.fm] Set MediaAttributesSupported to only support music.



commit 2fed92fbce1de8d7ca7a35a2a9c5f0f819881a6c
Author: Alex Launi <alex launi gmail com>
Date:   Thu Jun 17 19:46:27 2010 -0400

    [Last.fm] Set MediaAttributesSupported to only support music.

 .../Banshee.Lastfm.Recommendations/ContextPage.cs  |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/Extensions/Banshee.Lastfm/Banshee.Lastfm.Recommendations/ContextPage.cs b/src/Extensions/Banshee.Lastfm/Banshee.Lastfm.Recommendations/ContextPage.cs
index 6040dd9..a359085 100644
--- a/src/Extensions/Banshee.Lastfm/Banshee.Lastfm.Recommendations/ContextPage.cs
+++ b/src/Extensions/Banshee.Lastfm/Banshee.Lastfm.Recommendations/ContextPage.cs
@@ -32,6 +32,7 @@ using Mono.Unix;
 
 using Gtk;
 
+using Banshee.Collection;
 using Banshee.ContextPane;
 
 namespace Banshee.Lastfm.Recommendations
@@ -59,5 +60,12 @@ namespace Banshee.Lastfm.Recommendations
         {
             recs.Artist = track.ArtistName;
         }
+
+        public override TrackMediaAttributes SupportedMediaAttributes {
+            get {
+                return TrackMediaAttributes.Music;
+            }
+        }
+
     }
 }



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