Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/lastfm/method_category/tag.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Tag < Base
[:page, nil]
]
) do |response|
response.xml['toptracks']['track']
response.xml['tracks']['track']
end

regular_method(
Expand All @@ -31,7 +31,7 @@ class Tag < Base
[:page, nil]
]
) do |response|
response.xml['topalbums']['album']
response.xml['albums']['album']

end

Expand Down
4 changes: 2 additions & 2 deletions spec/fixtures/tag_get_top_albums.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<lfm status="ok">
<topalbums tag="Disco" page="1" perPage="5" totalPages="200" total="1000">
<albums tag="Disco" page="1" perPage="5" totalPages="200" total="1000">

<album rank="1">
<name>Number Ones</name>
Expand Down Expand Up @@ -67,4 +67,4 @@
<image size="medium">http://images.amazon.com/images/P/B00002NDAL.01.MZZZZZZZ.jpg</image>
<image size="large">http://images.amazon.com/images/P/B00002NDAL.01.MZZZZZZZ.jpg</image>
<image size="extralarge">http://images.amazon.com/images/P/B00002NDAL.01.MZZZZZZZ.jpg</image>
</album></topalbums></lfm>
</album></albums></lfm>
4 changes: 2 additions & 2 deletions spec/fixtures/tag_get_top_tracks.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<lfm status="ok">
<toptracks tag="Disco" page="1" perPage="5" totalPages="200" total="1000">
<tracks tag="Disco" page="1" perPage="5" totalPages="200" total="1000">

<track rank="1">
<name>Stayin' Alive</name>
Expand Down Expand Up @@ -97,5 +97,5 @@
<image size="medium">http://userserve-ak.last.fm/serve/64s/72573304.png</image>
<image size="large">http://userserve-ak.last.fm/serve/126/72573304.png</image>
<image size="extralarge">http://userserve-ak.last.fm/serve/300x300/72573304.png</image>
</track></toptracks></lfm>
</track></tracks></lfm>