tangled
alpha
login
or
join now
tom.sherman.is
/
piper
0
fork
atom
A fork of https://github.com/teal-fm/piper
0
fork
atom
overview
issues
pulls
pipelines
Not sure 100% on this
baileytownsend.dev
10 months ago
6bb345cc
f8953dc5
-10
1 changed file
expand all
collapse all
unified
split
service
spotify
spotify.go
-10
service/spotify/spotify.go
···
507
507
return nil, fmt.Errorf("failed to unmarshal spotify response: %w", err)
508
508
}
509
509
510
510
-
body, ioErr := io.ReadAll(resp.Body)
511
511
-
if ioErr != nil {
512
512
-
return nil, ioErr
513
513
-
}
514
514
-
515
515
-
err = json.Unmarshal(body, &response)
516
516
-
if err != nil {
517
517
-
return nil, err
518
518
-
}
519
519
-
520
510
var artists []models.Artist
521
511
for _, artist := range response.Item.Artists {
522
512
artists = append(artists, models.Artist{