[PR #143] [MERGED] web-api: Use Options.RestorePaused when transfering playback #233

Closed
opened 2026-02-28 14:26:20 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/devgianlu/go-librespot/pull/143
Author: @2opremio
Created: 11/12/2024
Status: Merged
Merged: 11/16/2024
Merged by: @devgianlu

Base: masterHead: fix-transfer-with-play


📝 Commits (2)

  • d9ae9a6 web-api: Use Options.RestorePaused when transfering playback
  • adb5aa9 Refine check

📊 Changes

1 file changed (+6 additions, -5 deletions)

View changed files

📝 cmd/daemon/player.go (+6 -5)

📄 Description

Fixes #140

For the record, when using play=true, the transfer playback command includes the following options:

    "options": {
      "restore_paused": "resume",
      "restore_position": "last_known"
    }

When using play=false

    "options": {
      "restore_paused": "pause",
      "restore_position": "extrapolate"
    }

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/devgianlu/go-librespot/pull/143 **Author:** [@2opremio](https://github.com/2opremio) **Created:** 11/12/2024 **Status:** ✅ Merged **Merged:** 11/16/2024 **Merged by:** [@devgianlu](https://github.com/devgianlu) **Base:** `master` ← **Head:** `fix-transfer-with-play` --- ### 📝 Commits (2) - [`d9ae9a6`](https://github.com/devgianlu/go-librespot/commit/d9ae9a60114c37de82efc97993a436b78359bd11) web-api: Use Options.RestorePaused when transfering playback - [`adb5aa9`](https://github.com/devgianlu/go-librespot/commit/adb5aa9caa36c23cb18ab23003ceed8ce9560b13) Refine check ### 📊 Changes **1 file changed** (+6 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `cmd/daemon/player.go` (+6 -5) </details> ### 📄 Description Fixes #140 For the record, when using `play=true`, the transfer playback command includes the following options: ```json "options": { "restore_paused": "resume", "restore_position": "last_known" } ``` When using `play=false` ```json "options": { "restore_paused": "pause", "restore_position": "extrapolate" } ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-28 14:26:20 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/go-librespot#233
No description provided.