ramsayleung / rspotify

Spotify Web API SDK implemented on Rust
MIT License
639 stars 123 forks source link

json parse error: unknown variant `STB` #383

Closed dzubybb closed 1 year ago

dzubybb commented 1 year ago

Describe the bug When calling device() method returns error:

json parse error: unknown variant `STB`, expected one of `Computer`, `Tablet`, `Smartphone`, `Speaker`, `Tv`, `Avr`, `Stb`, `AudioDongle`, `GameConsole`, `CastVideo`, `CastAudio`, `Automobile`, `Unknown` at line 16 column 18

To Reproduce Have registered device of type Stb and call device() method.

Expected behavior Device should be returned with type Stb.

Additional context Library is called from spotifyd, version 0.11.5

dzubybb commented 1 year ago

Relevant pull request in spotifyd: https://github.com/Spotifyd/spotifyd/pull/1162