From c7c1eb6d0152563f54dcf4262404706010f2fdf0 Mon Sep 17 00:00:00 2001 From: Steffen Forkmann Date: Wed, 21 Aug 2019 09:55:53 +0200 Subject: [PATCH] Bumping version to 1.5.19 --- RELEASE_NOTES.md | 2 +- src/Client/ReleaseNotes.fs | 4 ++-- src/Server/Sonos.fs | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 24ec65f..ed2de80 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -1,6 +1,6 @@ # Release Notes -## 1.5.18 - 2019-08-21 +## 1.5.19 - 2019-08-21 * Sonos support * Removed Youtube diff --git a/src/Client/ReleaseNotes.fs b/src/Client/ReleaseNotes.fs index 51a7845..a370dbd 100644 --- a/src/Client/ReleaseNotes.fs +++ b/src/Client/ReleaseNotes.fs @@ -1,13 +1,13 @@ module internal ReleaseNotes -let Version = "1.5.18" +let Version = "1.5.19" let IsPrerelease = false let Notes = """ # Release Notes -## 1.5.18 - 2019-08-21 +## 1.5.19 - 2019-08-21 * Sonos support * Removed Youtube diff --git a/src/Server/Sonos.fs b/src/Server/Sonos.fs index 7ddbb6c..a3feba5 100644 --- a/src/Server/Sonos.fs +++ b/src/Server/Sonos.fs @@ -49,10 +49,9 @@ type Session = { ID = get.Required.Field "sessionId" Decode.string } ) - let playModeToSingle (log:ILogger) accessToken group = task { let headers = ["Authorization", "Bearer " + accessToken] - let url = sprintf "https://api.ws.sonos.com/control/api/v1/groups/%s/playBack/playMode" group + let url = sprintf "https://api.ws.sonos.com/control/api/v1/groups/%s/playback/playMode" group let body = """{ "playModes": { "repeat": false, @@ -66,6 +65,7 @@ let playModeToSingle (log:ILogger) accessToken group = task { () } + let createOrJoinSession (log:ILogger) accessToken group = task { let headers = ["Authorization", "Bearer " + accessToken] let url = sprintf "https://api.ws.sonos.com/control/api/v1/groups/%s/playbackSession" group