mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[GH-ISSUE #331] Possibility to reauthenticate after device goes idle for a while? #219
Labels
No labels
A-Alsa
SpotifyAPI
Tokio 1.0
audio
bug
can't reproduce
compilation
dependencies
duplicate
enhancement
good first issue
help wanted
high priority
imported
imported
invalid
new api
pull-request
question
reverse engineering
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librespot#219
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 @yyjhao on GitHub (Apr 19, 2019).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/331
I have been using raspotify on my Raspberry Pi at home and control it with the spotify web API again through my Raspberry pi. I have noticed that frequently, if I use spotify at work on a laptop, the web API will fail to switch the playback to librespot when I come back home as the librespot device will not appear in the device list.
There are 2 ways I can fix this:
However, I wonder if it's possible that this can be fixed by 're-register' or 're-authenticating' in librespot given that 2 works. If so that will be much faster than having to restart raspotify or go through the official spotify app.
@michalfita commented on GitHub (May 31, 2019):
Oh, that's actually interesting. I didn't realize that until I read your comment, but same happens to me.
@yyjhao commented on GitHub (Sep 28, 2019):
I made https://github.com/librespot-org/librespot/pull/376 for this.
@Ja83La commented on GitHub (Apr 15, 2020):
Same problem here - device disapears from devices list after a while. As a consequence a can no longer control the device via the web-api. Until now, I found no workaround.
@janek commented on GitHub (Apr 30, 2020):
I'm experiencing the same problem and would appreciate any tips toward solving it. I'm trying to use Spotify+Raspi as a musical alarm clock, but if I'm idle for too long during the day, it won't work in the morning.
The information that I can restart raspotify/librespot to mitigate this is new to me - thank you for that @yyjhao (and for creating this issue).
Have you made an issue on the
raspotifyrepo yet? Maybe that would be a better place to handle this? (basing this proposition off of a comment by @kingosticks in #376)@schickling commented on GitHub (Jun 26, 2022):
@sashahilton00 given you've closed this issue, could you please leave a comment whether this was somehow addressed/fixed in librespot or whether it's still an issue?
@roderickvd commented on GitHub (Jun 27, 2022):
Situation is the same. Groundwork was laid down in
new-apito make it better, but I’ve had little time as of late.