Spotify Playing/Paused events not handled - Printable Version +- Moode Forum (https://moodeaudio.org/forum) +-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3) +--- Forum: Support (https://moodeaudio.org/forum/forumdisplay.php?fid=7) +--- Thread: Spotify Playing/Paused events not handled (/showthread.php?tid=6965) |
Spotify Playing/Paused events not handled - Sander - 10-05-2024 (09-22-2024, 12:00 PM)Tim Curtis Wrote: I'll add librespot to watchdog for upcoming 9.1.2 release.I came here to search for this issue. In my case, indeed MoOde Spotify is sometimes not shown in the Spotify app. When I go to the MoOde web interface, it tells me that Spotify is already active. I can then use the Disconnect button to make MoOde Spotify available again in the Spotify app. In this case it doesn't seem like librespot is crashing, but instead it is not disconnecting after playing has stopped and the connection is idle for some time. Similar to this librespot issue on GitHub. The issue is not new in 9.1.2 but I believe was introduced somewhere in the 9 series. Is there something that can be done about this, Tim? RE: Spotify Connect option disappears - Tim Curtis - 10-05-2024 (10-05-2024, 07:33 PM)Sander Wrote:(09-22-2024, 12:00 PM)Tim Curtis Wrote: I'll add librespot to watchdog for upcoming 9.1.2 release.I came here to search for this issue. In my case, indeed MoOde Spotify is sometimes not shown in the Spotify app. When I go to the MoOde web interface, it tells me that Spotify is already active. I can then use the Disconnect button to make MoOde Spotify available again in the Spotify app. IIRC the librespot event script only checked for events "started" and "stopped" and so I don't believe it ever responded to "play/pause" but I'll look into it in a bit. RE: Spotify Connect option disappears - Tim Curtis - 10-05-2024 (10-05-2024, 08:38 PM)Tim Curtis Wrote:(10-05-2024, 07:33 PM)Sander Wrote:(09-22-2024, 12:00 PM)Tim Curtis Wrote: I'll add librespot to watchdog for upcoming 9.1.2 release.I came here to search for this issue. In my case, indeed MoOde Spotify is sometimes not shown in the Spotify app. When I go to the MoOde web interface, it tells me that Spotify is already active. I can then use the Disconnect button to make MoOde Spotify available again in the Spotify app. Here's the event log and it shows that only "started" and "stopped" events are processed confirming that "playing/paused" events are skipped. I don't see anything in my notes about why they are skipped. Also I don't think there is any sort of idle timeout for librespot. Code: pi@moode9:~ $ tail -f /var/log/moode_spotevent.log RE: Spotify Playing/Paused events not handled - Tim Curtis - 10-06-2024 I'll push a commit today that updates the event handling to use playing/paused instead of started/stopped. RE: Spotify Playing/Paused events not handled - Sander - 10-06-2024 Thanks Tim. Maybe 'moodeutl -R --spotify' in crontab at 3am is a workaround for me in the meantime. |