kevuo / lastfm-sharp

Automatically exported from code.google.com/p/lastfm-sharp
GNU General Public License v3.0
0 stars 0 forks source link

User.GetWeeklyTrackChart reporting different number of tracks to last.fm website. #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Write an example of code that reproduces the problem
            int count = 0;
            StringBuilder sb = new StringBuilder();
            User user = new User(username, session);
            WeeklyChartTimeSpan[] spans = user.GetWeeklyChartTimeSpans();
            WeeklyTrackChart trackChart = user.GetWeeklyTrackChart();
            foreach (WeeklyTrackChartItem trackChartItem in trackChart)
            {
                sb.Append(trackChartItem.Track.ToString() + ". Plays: " +
trackChartItem.Playcount + "\r\n");
                count += trackChartItem.Playcount;
            }
            Console.WriteLine(sb.ToString());
            Console.WriteLine("Total plays: " + count);

How are things are not going as they should?
Example output:
...
Switches - Coming Down
Cobra Starship - You Can't Be Missed If You Never Go Away
...

Total plays: 727

Total plays according to last.fm for that week was 726, as can be seen at
http://www.last.fm/user/asendedtrunks/charts?charttype=weekly&subtype=track&rang
e=214

What version of lastfm-sharp is doing that? On Mono or .Net?
liblastfm-sharp-0.1.09 .Net

Anything else?

Original issue reported on code.google.com by asendedt...@gmail.com on 5 Feb 2009 at 10:58

GoogleCodeExporter commented 9 years ago
I have absolutely no idea why this is happening. But I can clearly tell you 
that it's
not a lastfm-sharp issue. Probably the data displayed on the website is not 
counting
a track or something. lastfm-sharp pulls the data from the raw web services 
provided
by last.fm, so I guess it should be more accurate.

You could report this at the support forum
(http://www.last.fm/group/Last.fm+Web+Services/forum/21604) if it's really 
important
to you.

Original comment by amr.hassan on 7 Feb 2009 at 6:40