banshee r3702 - in trunk/banshee: . src/Extensions/Banshee.Lastfm/Banshee.Lastfm.Radio src/Libraries/Lastfm/Lastfm



Author: gburt
Date: Mon Apr  7 06:41:07 2008
New Revision: 3702
URL: http://svn.gnome.org/viewvc/banshee?rev=3702&view=rev

Log:
2008-04-07  Gabriel Burt  <gabriel burt gmail com>

	* src/Extensions/Banshee.Lastfm/Banshee.Lastfm.Radio/LastfmActions.cs:
	Fix love/ban icons.

	* src/Libraries/Lastfm/Lastfm/RadioConnection.cs: Remove unnecessary
	logging, log exceptions with Log.Exception (e).


Modified:
   trunk/banshee/ChangeLog
   trunk/banshee/src/Extensions/Banshee.Lastfm/Banshee.Lastfm.Radio/LastfmActions.cs
   trunk/banshee/src/Libraries/Lastfm/Lastfm/RadioConnection.cs

Modified: trunk/banshee/src/Extensions/Banshee.Lastfm/Banshee.Lastfm.Radio/LastfmActions.cs
==============================================================================
--- trunk/banshee/src/Extensions/Banshee.Lastfm/Banshee.Lastfm.Radio/LastfmActions.cs	(original)
+++ trunk/banshee/src/Extensions/Banshee.Lastfm/Banshee.Lastfm.Radio/LastfmActions.cs	Mon Apr  7 06:41:07 2008
@@ -136,12 +136,12 @@
             // Track actions
             Add (new ActionEntry [] {
                 new ActionEntry (
-                    "LastfmLoveAction", "face-smile",
+                    "LastfmLoveAction", null,
                     Catalog.GetString ("Love Track"), null,
                     Catalog.GetString ("Mark current track as loved"), OnLoved),
 
                 new ActionEntry (
-                    "LastfmHateAction", "face-sad",
+                    "LastfmHateAction", null,
                     Catalog.GetString ("Ban Track"), null,
                     Catalog.GetString ("Mark current track as banned"), OnHated),
 
@@ -154,6 +154,9 @@
                     Catalog.GetString ("Recommend this track to someone"), OnTrackRecommend)
             });
 
+            this["LastfmLoveAction"].IconName = "face-smile";
+            this["LastfmHateAction"].IconName = "face-sad";
+
             Add (
                 new RadioActionEntry [] {
                     new RadioActionEntry (

Modified: trunk/banshee/src/Libraries/Lastfm/Lastfm/RadioConnection.cs
==============================================================================
--- trunk/banshee/src/Libraries/Lastfm/Lastfm/RadioConnection.cs	(original)
+++ trunk/banshee/src/Libraries/Lastfm/Lastfm/RadioConnection.cs	Mon Apr  7 06:41:07 2008
@@ -187,7 +187,7 @@
                     this.station = station;
                     return StationError.None;
                 } catch (Exception e) {
-                    Console.WriteLine (e.ToString ());
+                    Log.Exception (e);
                     return StationError.Unknown;
                 }
             }
@@ -202,7 +202,6 @@
                 string url = StationRefreshUrl;
                 Playlist pl = new Playlist ();
                 Stream stream = null;
-                Console.WriteLine ("StationSource Loading: {0}", url);
                 try {
                     stream = GetXspfStream (url);
                     pl.Load (stream);
@@ -360,9 +359,9 @@
 
             HttpWebResponse response = (HttpWebResponse) request.GetResponse ();
             using (Stream stream = response.GetResponseStream ()) {
-                using (StreamReader reader = new StreamReader (stream)) {
+                /*using (StreamReader reader = new StreamReader (stream)) {
                     Console.WriteLine ("Posted {0} got response {1}", body, reader.ReadToEnd ());
-                }
+                }*/
             }
             return response.StatusCode;
         }



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