Skip to content

Commit

Permalink
Fix recent command returning 11 tracks instead of 10
Browse files Browse the repository at this point in the history
  • Loading branch information
dxnter committed Oct 24, 2020
1 parent b94a0ed commit 75f117d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/lastfm.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export async function fetch10RecentTracks(fmUser) {
};
}
const GET_RECENT_TRACKS = 'user.getRecentTracks';
const TRACKS_QUERY_STRING = `&user=${fmUser}&api_key=${LASTFM_API_KEY}&limit=10&format=json`;
const TRACKS_QUERY_STRING = `&user=${fmUser}&api_key=${LASTFM_API_KEY}&limit=9&format=json`;
const recentTracksRequestURL = encodeURI(
`${LASTFM_API_URL}${GET_RECENT_TRACKS}${TRACKS_QUERY_STRING}`
);
Expand Down

0 comments on commit 75f117d

Please sign in to comment.