kevuo / lastfm-sharp

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

LibraryTracks GetPageCount() returns album pages instead of track pages #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Write an example of code that reproduces the problem

 Broken code (in LibraryTracks.cs):

        public LibraryTracks(Library library, Session session)
            :base("library.getAlbums", session)
        {
            Library = library;
        }

 My proposed solution:

        public LibraryTracks(Library library, Session session)
            :base("library.getTracks", session)
        {
            Library = library;
        }

How are things are not going as they should?

 LibraryTracks is using "library.getAlbums" for the method name, thus
rendering the data from GetPageCount() incorrect (it returns the number of
pages of album data instead of the number of pages of track data).

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

 Subversion trunk r61 on .Net.

Original issue reported on code.google.com by blodulv on 18 Mar 2009 at 11:33

GoogleCodeExporter commented 8 years ago
Fixed in the trunk. Thank you for reporting this.

Original comment by amr.hassan on 18 Mar 2009 at 11:44

GoogleCodeExporter commented 8 years ago
No problem! :)

Original comment by blodulv on 18 Mar 2009 at 11:46