Skip to content

Commit 830589f

Browse files
authored
Merge pull request #322 from ShellWen/patch-1
fix loop request when getCurrentlyPlaying got 204
2 parents 0aadecf + 022022d commit 830589f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commonMain/kotlin/com.adamratzman.spotify/endpoints/client/ClientPlayerApi.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public class ClientPlayerApi(api: GenericSpotifyApi) : SpotifyEndpoint(api) {
159159
return try {
160160
val obj =
161161
catch {
162-
get(
162+
getNullable(
163163
endpointBuilder("/me/player/currently-playing")
164164
.with("additional_types", additionalTypes.joinToString(",") { it.identifier })
165165
.with("market", market?.name)

0 commit comments

Comments
 (0)