diff --git a/lib/lastfm/method_category/tag.rb b/lib/lastfm/method_category/tag.rb index 7d5928c..a03c10d 100644 --- a/lib/lastfm/method_category/tag.rb +++ b/lib/lastfm/method_category/tag.rb @@ -20,7 +20,7 @@ class Tag < Base [:page, nil] ] ) do |response| - response.xml['toptracks']['track'] + response.xml['tracks']['track'] end regular_method( @@ -31,7 +31,7 @@ class Tag < Base [:page, nil] ] ) do |response| - response.xml['topalbums']['album'] + response.xml['albums']['album'] end diff --git a/spec/fixtures/tag_get_top_albums.xml b/spec/fixtures/tag_get_top_albums.xml index 9c5e941..fb12583 100644 --- a/spec/fixtures/tag_get_top_albums.xml +++ b/spec/fixtures/tag_get_top_albums.xml @@ -1,6 +1,6 @@ - + Number Ones @@ -67,4 +67,4 @@ http://images.amazon.com/images/P/B00002NDAL.01.MZZZZZZZ.jpg http://images.amazon.com/images/P/B00002NDAL.01.MZZZZZZZ.jpg http://images.amazon.com/images/P/B00002NDAL.01.MZZZZZZZ.jpg - + diff --git a/spec/fixtures/tag_get_top_tracks.xml b/spec/fixtures/tag_get_top_tracks.xml index 65889c5..9b85200 100644 --- a/spec/fixtures/tag_get_top_tracks.xml +++ b/spec/fixtures/tag_get_top_tracks.xml @@ -1,6 +1,6 @@ - + Stayin' Alive @@ -97,5 +97,5 @@ http://userserve-ak.last.fm/serve/64s/72573304.png http://userserve-ak.last.fm/serve/126/72573304.png http://userserve-ak.last.fm/serve/300x300/72573304.png - +