mirror of
https://github.com/devgianlu/go-librespot.git
synced 2026-04-26 21:35:49 +03:00
[GH-ISSUE #50] How to start playing without select the device from Spotify client? #42
Labels
No labels
bug
enhancement
pull-request
spotify-side
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/go-librespot#42
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @lnkpaulo on GitHub (Jul 22, 2024).
Original GitHub issue: https://github.com/devgianlu/go-librespot/issues/50
Hello,
First of all thank you for the excellent work with the go-librespot.
I have a question rather than an issue:
When I start my Spotify client and connect it with go-librespot, everything works perfectly. However, if I store the last played status using TinyDB and try to initiate playback without first connecting via the Spotify client, I encounter an exception:
Basically, my question is: Is it possible to start playback without first connecting through the Spotify client?
Thank you for you time.
@devgianlu commented on GitHub (Jul 25, 2024):
The problem is that you are adding something to the queue without having a context initiated, I have mitigated the issue by not crashing the player, but I don't think what you are trying to do is supported by Spotify.
You can try to play the song directly without adding it to the queue.
@lnkpaulo commented on GitHub (Jul 25, 2024):
Hi,
Thank you for the update, the patch solves the crash of the player: "WARN[0171] cannot add to queue without a context".
About the queue, I will follow your suggestion, before to have a context, playing directly works perfectly:
In conclusion, to my original question the answer is yes, :-), we can play directly without first connecting via the Spotify client.
Thank you once more.