You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This sets the default 'User-Agent' header on all axios requests.
I discovered this by sniffing traffic between the Sonos app and my network and comparing the results, then trying to change one thing at a time to see what improved the outcome.
When calling getFavorites(), in my test, node-sonos gives me two (2) results. In the macOS Sonos app, I show four (4) entries.
Expected Behavior
It should return the same items as the Sonos app has.
Current Behavior
It omits (due to some weirdness in Sonos UPnP?) certain records.
Possible Solution
This sets the default 'User-Agent' header on all axios requests.
I discovered this by sniffing traffic between the Sonos app and my network and comparing the results, then trying to change one thing at a time to see what improved the outcome.
Sample code or executed example
Versions (and Environment)
Node version: v19.2.0
node-sonos version: 1.14.1
OS: macOS
The text was updated successfully, but these errors were encountered: