Skip to content

Fixed GetTop commands from the Tag Api#176

Open
eivanmariscal wants to merge 1 commit intoinflatablefriends:nextfrom
eivanmariscal:fix/get-top-commands
Open

Fixed GetTop commands from the Tag Api#176
eivanmariscal wants to merge 1 commit intoinflatablefriends:nextfrom
eivanmariscal:fix/get-top-commands

Conversation

@eivanmariscal
Copy link

@eivanmariscal eivanmariscal commented Oct 5, 2023

Lastfm's documentation is off for these endpoints:

  • tag.getTopAlbums
  • tag.getTopTags

Documentation says that it should return a "topalbums" and "toptracks" object respectively but it's actually returning "albums" and "tracks".

This is related to issue #172 and this PR fixes that.

There was another bug in the tag.getTopTags command.
For this endpoint Lastfm doesn't return an URL object and this was throwig a NullReferenceException in the LastTag constructor. I added an overloaded constructor to fix the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant