mirror of
https://github.com/gesellix/Bose-SoundTouch.git
synced 2026-08-18 08:36:13 +00:00
Improve parity with upstream (#155)
See https://github.com/gesellix/Bose-SoundTouch/issues/135
This commit is contained in:
@@ -77,7 +77,15 @@ GET {{host}}/accounts/{{accountId}}/sources
|
||||
client.assert(id !== undefined && id !== "", "Spotify source ID missing");
|
||||
client.global.set("spotify_source_id", id);
|
||||
|
||||
const secretType = spotifySource.getAttribute("secretType");
|
||||
function getCredentialType(source) {
|
||||
const credentials = source.getElementsByTagName("credential");
|
||||
if (credentials && credentials.length > 0) {
|
||||
return credentials[0].getAttribute("type");
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
const secretType = getCredentialType(spotifySource);
|
||||
client.assert(secretType === "token_version_3", "Wrong secret type in Marge: " + secretType);
|
||||
});
|
||||
%}
|
||||
|
||||
Reference in New Issue
Block a user