[banshee] [Lastfm] Updated to API change
- From: Alexander Kojevnikov <alexk src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [banshee] [Lastfm] Updated to API change
- Date: Sat, 6 Feb 2010 04:03:14 +0000 (UTC)
commit a8be6f29e474e707563b4f4d1b5a88905b821d94
Author: Alexander Kojevnikov <alexander kojevnikov com>
Date: Sat Feb 6 15:00:34 2010 +1100
[Lastfm] Updated to API change
Last.fm silently changed its API to return the similar artist match
value from [0,100] to [0,1]
src/Libraries/Lastfm/Lastfm.Data/DataEntry.cs | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/Libraries/Lastfm/Lastfm.Data/DataEntry.cs b/src/Libraries/Lastfm/Lastfm.Data/DataEntry.cs
index 981dce2..7606453 100644
--- a/src/Libraries/Lastfm/Lastfm.Data/DataEntry.cs
+++ b/src/Libraries/Lastfm/Lastfm.Data/DataEntry.cs
@@ -200,7 +200,7 @@ namespace Lastfm.Data
public string ImageUrl { get { return Get<string> ("image"); } }
public string SmallImageUrl { get { return Get<string> ("image_small"); } }
public double Match { get { return Get<double> ("match"); } }
- public int MatchAsInt { get { return (int) Math.Round (Match); } }
+ public int MatchAsInt { get { return (int) Math.Round (Match * 100d); } }
}
public class ArtistFan : Friend
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]