API uses "playback", not "playbook"

This commit is contained in:
Frank W
2026-05-15 13:45:54 +02:00
committed by Tobias Gesellchen
parent 5ba0776787
commit 996faa0578
9 changed files with 16 additions and 16 deletions
+3 -3
View File
@@ -35,7 +35,7 @@ soundtouch-cli --host 192.168.1.100 preset store \
soundtouch-cli --host 192.168.1.100 preset store \
--slot 3 \
--source TUNEIN \
--location "/v1/playbook/station/s33828" \
--location "/v1/playback/station/s33828" \
--name "K-LOVE Radio"
```
@@ -103,7 +103,7 @@ Just replace `https://open.spotify.com/` with `spotify:` and `/` with `:`.
### Radio Stations
```bash
# TuneIn Radio
--source TUNEIN --location "/v1/playbook/station/s33828"
--source TUNEIN --location "/v1/playback/station/s33828"
# Internet Radio Stream
--source LOCAL_INTERNET_RADIO --location "https://stream.example.com/jazz"
@@ -249,7 +249,7 @@ soundtouch-cli --host 192.168.1.100 preset store \
# Kids' bedtime stories
soundtouch-cli --host 192.168.1.100 preset store \
--slot 3 --source TUNEIN \
--location "/v1/playbook/station/bedtime-stories" \
--location "/v1/playback/station/bedtime-stories" \
--name "Bedtime Stories"
```
+2 -2
View File
@@ -139,7 +139,7 @@ soundtouch-cli --host 192.168.1.10 preset store \
soundtouch-cli --host 192.168.1.10 preset store \
--slot 2 \
--source TUNEIN \
--location "/v1/playbook/station/s33828" \
--location "/v1/playback/station/s33828" \
--name "K-LOVE Radio"
# Store internet radio
@@ -956,7 +956,7 @@ soundtouch-cli --host 192.168.1.10 station add \
# Remove a station (use location from browse/search results)
soundtouch-cli --host 192.168.1.10 station remove \
--source TUNEIN \
--location "/v1/playbook/station/s33828"
--location "/v1/playback/station/s33828"
```
**Workflow Example - Discover and Play New Content:**
+1 -1
View File
@@ -474,7 +474,7 @@ Catch-all endpoint that signals the matching pre-flight probe channel. Used inte
#### `GET /bmx/registry/v1/services`
Returns available media services for device registration.
#### `GET /bmx/tunein/v1/playbook/station/{stationID}`
#### `GET /bmx/tunein/v1/playback/station/{stationID}`
Provides TuneIn station playback information.
#### `GET /bmx/tunein/v1/podcast/{podcastID}`
+3 -3
View File
@@ -309,7 +309,7 @@ Now Playing:
Track: K-LOVE Radio
Content Details:
Location: /v1/playbook/station/s33828
Location: /v1/playback/station/s33828
```
**LOCAL_INTERNET_RADIO:**
@@ -341,7 +341,7 @@ go run ./cmd/soundtouch-cli --host 192.168.1.100 play now --verbose
Shows additional information:
```
Content Details:
Location: /v1/playbook/station/s33828
Location: /v1/playback/station/s33828
Content Type: stationurl
Item Name: K-LOVE Radio
Presetable: true
@@ -367,7 +367,7 @@ Content Details:
| **Spotify Album** | `spotify:album:ID` | `spotify:album:4aawyAB9vmqN3uQ7FjRGTy` |
| **Spotify Artist** | `spotify:artist:ID` | `spotify:artist:6APm8EjxOHSYM5B4i3vT3q` |
| **Spotify Track** | `spotify:track:ID` | `spotify:track:17GmwQ9Q3MTAz05OokmNNB` |
| **TUNEIN Radio** | `/v1/playbook/station/ID` | `/v1/playbook/station/s33828` |
| **TUNEIN Radio** | `/v1/playback/station/ID` | `/v1/playback/station/s33828` |
| **Internet Radio** | `URL or encoded URL` | `https://stream.example.com/radio` |
| **STORED_MUSIC** | `Container ID` | `6_a2874b5d_4f83d999` |
| **LOCAL_MUSIC** | `album:ID` or `track:ID` | `album:983`, `track:2579` |
+1 -1
View File
@@ -83,7 +83,7 @@ go run main.go 192.168.1.100
🎯 Using generic ContentItem selection...
Content: K-LOVE Radio
Source: TUNEIN
Location: /v1/playbook/station/s33828
Location: /v1/playback/station/s33828
✅ Successfully selected content using ContentItem
✅ Content selection demo completed!
+1 -1
View File
@@ -209,7 +209,7 @@ func demoGenericContentItem(c *client.Client) error {
contentItem := &models.ContentItem{
Source: "TUNEIN",
Type: "stationurl",
Location: "/v1/playbook/station/s33828", // K-LOVE Radio
Location: "/v1/playback/station/s33828", // K-LOVE Radio
SourceAccount: "",
IsPresetable: true,
ItemName: "K-LOVE Radio",
+1 -1
View File
@@ -140,7 +140,7 @@ err := client.AddStation("TUNEIN", "", "c121508", "Jazz FM")
// Remove station from collection
contentItem := &models.ContentItem{
Source: "TUNEIN",
Location: "/v1/playbook/station/s33828",
Location: "/v1/playback/station/s33828",
}
err := client.RemoveStation(contentItem)
```
+2 -2
View File
@@ -71,7 +71,7 @@ go run . 192.168.1.100
2. K-LOVE Radio
Source: TUNEIN
Location: /v1/playbook/station/s33828
Location: /v1/playback/station/s33828
Created: 2024-01-15 09:15:00
🆓 Available slots: [3 4 5 6]
@@ -179,7 +179,7 @@ Location: "spotify:track:17GmwQ9Q3MTAz05OokmNNB"
```go
// TuneIn
Location: "/v1/playbook/station/s33828"
Location: "/v1/playback/station/s33828"
// Internet Radio
Location: "https://stream.example.com/radio"
+2 -2
View File
@@ -226,7 +226,7 @@ func storeRadioStation(c *client.Client) error {
radioContent := &models.ContentItem{
Source: "TUNEIN",
Type: "stationurl",
Location: "/v1/playbook/station/s33828", // K-LOVE
Location: "/v1/playback/station/s33828", // K-LOVE
SourceAccount: "",
IsPresetable: true,
ItemName: "K-LOVE Radio",
@@ -329,7 +329,7 @@ func demonstrateWebSocketEvents(c *client.Client) error {
testContent := &models.ContentItem{
Source: "TUNEIN",
Type: "stationurl",
Location: "/v1/playbook/station/s25111", // BBC Radio 1
Location: "/v1/playback/station/s25111", // BBC Radio 1
SourceAccount: "",
IsPresetable: true,
ItemName: "BBC Radio 1",