Skip to content

Commit

Permalink
Stop adding duplicate entries to 'get all albums by artist' result
Browse files Browse the repository at this point in the history
  • Loading branch information
stevesoltys committed Aug 30, 2020
1 parent 56ac14f commit 5c0c6d0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/main/kotlin/com/stevesoltys/applemusic/AppleMusic.kt
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ class AppleMusic(
call(appleMusicService.getAlbumsByArtistId(id, offset.toString(), limit))

val result = currentResponse.data.toCollection(ArrayList())
result.addAll(currentResponse.data)

while (currentResponse.next != null) {
offset += currentResponse.data.size
Expand Down

0 comments on commit 5c0c6d0

Please sign in to comment.