gilbarbara / react-spotify-web-playback

A simple player for Spotify's web playback
https://react-spotify-web-playback.gilbarbara.dev/
MIT License
326 stars 72 forks source link

Image "thumb" not available anymore at track object #141

Closed gianpietro1 closed 1 year ago

gianpietro1 commented 1 year ago

Describe the bug

The "track" object from the callback at previous versions contained a "thumb" image, which I was using for keeping a "recently played" section, but it seems it's gone with 0.13.x.

With 0.12.x:

image

With 0.13.1:

image

Is this a limitation of a newer SDK version? or an issue with this component? thanks!

Your minimal, reproducible example

https://codesandbox.io/s/github/gilbarbara/react-spotify-web-playback/main/demo

Steps to reproduce

(no demo provided)

Expected behavior

I expect "thumb" to be present at the "track" object.

How often does this bug happen?

Every time

Screenshots or Videos

No response

Platform

react-spotify-web-playback version

0.13.1

TypeScript version

No response

Build tool

create-react-app

Additional context

No response

gianpietro1 commented 1 year ago

(btw, I'm showing the final object at my database, which also shows an isLocal property which I insert to the original track object, please ignore that one)

gilbarbara commented 1 year ago

Hey @gianpietro1 Yes, the thumb was removed in 0.13.0. You can use the image instead.

gianpietro1 commented 1 year ago

Got it, will use image with proper styling now. Thanks!