Skip to content

encode id because sonos doesn't seem to like some special characters in the id#173

Merged
pascalopitz merged 1 commit intopascalopitz:masterfrom
s1037989:master
Dec 31, 2021
Merged

encode id because sonos doesn't seem to like some special characters in the id#173
pascalopitz merged 1 commit intopascalopitz:masterfrom
s1037989:master

Conversation

@s1037989
Copy link
Contributor

@s1037989 s1037989 commented Dec 30, 2021

This PR allows for viewing a listing of On this device localMusic even when the files in the local music folder contain special characters that sonos doesn't seem to appreciate. Furthermore, it is able to play these files that contain special characters in the filename.

According to the Sonos documentation for getMetadata, the id is simply a type string(128), but for whatever reason, at least & is not an acceptable character in the id for Sonos. By eliminating the special characters using encodeURIComponent, Sonos is able to list and play the localMusic.

Resolves #172

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

localMusic files with & in filename

2 participants