svrooij / node-sonos-ts

:speaker: Sonos control library, use this library in your own appliction.
https://sonos-ts.svrooij.io/
MIT License
84 stars 18 forks source link

BUG: RadioFavoritesUpdateID is NaN #122

Closed hklages closed 3 years ago

hklages commented 3 years ago

What happened

Subscribing to ContentDirectoryService provides two properties with NaN :

LOW PRIORITY - just to explore the capabilities.

What did you expect to happen

maybe string - dont know as I have no access to the raw data from SONOS player

How to reproduce it (minimal and precise)

just subscribe to that servce

Debug logging

no raw data with sonos:eventlistener

Environment

svrooij commented 3 years ago

Not all events emit all properties. All event properties are defined as optional in the typescript code.

This is also stated in the documentation

https://svrooij.io/node-sonos-ts/sonos-device/services/content-directory-service.html#contentdirectoryservice-event