banshee r3334 - in trunk/banshee: . src/Extensions/Banshee.Lastfm/Banshee.Lastfm.Audioscrobbler



Author: ahixon
Date: Wed Feb 27 06:32:40 2008
New Revision: 3334
URL: http://svn.gnome.org/viewvc/banshee?rev=3334&view=rev

Log:
2008-02-27  Alexander Hixon  <hixon alexander mediati org>

	* src/Extensions/Banshee.Lastfm/Banshee.Lastfm.Audioscrobbler/AudioscrobblerService.cs:
	Only scrobble tracks if the 'Enable song reporting' checkbox is active.


Modified:
   trunk/banshee/ChangeLog
   trunk/banshee/src/Extensions/Banshee.Lastfm/Banshee.Lastfm.Audioscrobbler/AudioscrobblerService.cs

Modified: trunk/banshee/src/Extensions/Banshee.Lastfm/Banshee.Lastfm.Audioscrobbler/AudioscrobblerService.cs
==============================================================================
--- trunk/banshee/src/Extensions/Banshee.Lastfm/Banshee.Lastfm.Audioscrobbler/AudioscrobblerService.cs	(original)
+++ trunk/banshee/src/Extensions/Banshee.Lastfm/Banshee.Lastfm.Audioscrobbler/AudioscrobblerService.cs	Wed Feb 27 06:32:40 2008
@@ -198,7 +198,9 @@
         SongTimer st = new SongTimer ();
         
         private void Queue (TrackInfo track) {
-            if (track == null || st.PlayTime == 0) {
+            if (track == null || st.PlayTime == 0 ||
+                !(actions["AudioscrobblerEnableAction"] as ToggleAction).Active) {
+                
                 return;
             }
             



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