[banshee] [TrackInfo] Add PlaybackSkippedThreshold property



commit ab9364151f17f2ec7320bc1e55881c63e3cae241
Author: Aaron Bockover <abockover novell com>
Date:   Sat May 1 19:45:04 2010 -0400

    [TrackInfo] Add PlaybackSkippedThreshold property

 .../Banshee.Core/Banshee.Collection/TrackInfo.cs   |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/Core/Banshee.Core/Banshee.Collection/TrackInfo.cs b/src/Core/Banshee.Core/Banshee.Collection/TrackInfo.cs
index c0b05af..c9e9402 100644
--- a/src/Core/Banshee.Core/Banshee.Collection/TrackInfo.cs
+++ b/src/Core/Banshee.Core/Banshee.Collection/TrackInfo.cs
@@ -44,6 +44,7 @@ namespace Banshee.Collection
     public class TrackInfo : CacheableItem, ITrackInfo
     {
         public const string ExportVersion = "1.0";
+        public static readonly double PlaybackSkippedThreshold = 0.5;
 
         public static readonly string UnknownTitle = Catalog.GetString ("Unknown Title");
 
@@ -86,7 +87,7 @@ namespace Banshee.Collection
                 Score = (int) Math.Round ((((double)Score * total_plays) + (percentCompleted * 100)) / (total_plays + 1));
             }
 
-            if (percentCompleted <= 0.5) {
+            if (percentCompleted <= PlaybackSkippedThreshold) {
                 LastSkipped = DateTime.Now;
                 SkipCount++;
             } else {



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